Re: swi prolog script problem

Boris Vassilev <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <CAFw8os+RRC-qwFZbcAzxM0_7W_nu2gDDv=rY6feNkkYAsb5pUw@mail.gmail.com>
Has something to do with the meaning of the -x and -b flags, maybe? Look at
the very bottom of the relevant section in the manual:

http://www.swi-prolog.org/pldoc/man?section=cmdline


On Wed, Jan 8, 2014 at 3:59 PM, db <[email protected]
> wrote:

> Hello,
>
> The following script "test.pl" has a strange behavior :
>
> __________________________________________
> #! /usr/bin/swipl
>
> :- set_prolog_stack(local,  limit(10**9)).
>
> :- initialization top.
>
> top :-
>     current_prolog_flag(argv,LArgs),
>     writeln(LArgs),
>     halt.
> __________________________________________
>
>
> When I run "test.pl -x"
> the result :
> [-x]
>
> When I run "test.pl -b"
> I obtain the following error :
>
> Message: error(syntax_error(operator_expected),
>                file(/home/dominique/Bureau/Recherche/LEa1/Lea1_work
>                /test.pl,1,1,1))
> [PROLOG SYSTEM ERROR:  Thread 1
>         Undefined predicate: initialization/1
>
>
> Why ?
>
> Thanks for your ideas.
>
> I use SWI-Prolog (Multi-threaded, 64 bits, Version 7.1.4)
> under Ubuntu.
>
>
> Dominique
>
>
>
>
>
> _______________________________________________
> SWI-Prolog mailing list
> [email protected]
> https://lists.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog
>



-- 
Boris Vassilev
+358 9 191 25266
Intracellular Cholesterol Trafficking Lab
Institute of Biomedicine, Anatomy
P.O. Box 63 (Haartmaninkatu 8)
FI-00014 University of Helsinki, Finland
-------------- next part --------------
HTML attachment scrubbed and removed
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.