Re: Using Settings

Jan Wielemaker <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
On 02/04/2014 05:54 PM, Anne Ogborn wrote:
> 
>> 16 ?- set_setting(http:prefix, '/crane').
>> ERROR: setting `prefix' does not exist
> 
> It seems to be defined in ClioPatria's parms.pl.  At some point, the overall
> idea was to rebase a server by changing the HTTP path alias for root.  This
> change never materialized.  So, the above only works for ClioPatria.
> Otherwise
> you must define http:prefix.  It is a bit of a mess :-(  Possibly the right
> solution is to add it to library(http/http_path) and decide we won't change
> this further?
> 
>     Cheers --- Jan
> 
> As an alternative, we could remove it from the documentation and rewrite
> those places to suggest rebasing root

In a sense, that would be more consistent.  On the other hand, being able to
rebase the root is quite common and using the setting library has its
advantages
here.  Still a it unsure ...

	--- Jan
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.