Re: Ann: SWI-Prolog 6.5.2

Kilian Evang <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
Hi Jan, all,

On 22-08-13 14:12, Jan Wielemaker wrote:
>  * MODIFIED: The =argv= Prolog flag now only contains _unprocessed_
>    commandline arguments.  This change is primarily for improving
>    compatibility with other systems (e.g., YAP, SICStus).  A new flag,
>    called =os_argv= provides the original complete list of arguments.
> 
>    Unfortunately, some code must be updated to deal with this change. A
>    hack to restore compatibility is to call the following before anything
>    else in the application:
> 
>      ==
>      :- 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.

Right?

Best,
Kilian
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.