Re: Ann: SWI-Prolog 6.5.2
Jan Wielemaker <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <[email protected]> |
On 08/22/2013 03:32 PM, Kilian Evang wrote: >>>> == >>>> :- current_prolog_flag(os_argv, Argv), >>>> set_prolog_flag(argv, Argv). >>>> == >>> >>> or, to maintain compatibility with older SWIPL versions: >>> >>> :- current_prolog_flag(os_argv, Argv) >>> -> set_prolog_flag(argv, Argv) >>> ; true. >> >> Not sure I get this > > My aim is just to keep old code running on the old *and* new Prolog, > with a minimal change. Your hack has the problem that the directive > fails on the old Prolog. That's what I wanted to fix. Am I missing > something? In that case your `fix' is correct. Cheers --- Jan