[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Apr 6 08:43:06 2001 
Subject:Re: Prolog, NT and strings 
From:Roger . Evans 
Volume-ID:1010406.01 

Michael,

I had a little nose around in the relevant prolog code a few months back for a
slightly different reason, but found it very difficult (even as someone who is
quite familiar with poplog itemisation support) to get the reader to do what I
wanted - prolog maintains its own item_chartype table that it plugs in whenever
it decides to itemise, so trying to dynamically modify tables from 'outside' is
unlikely to work. In any case I worry that various other things (libraries etc.)
would stop working if you do this across the board.

My own strategy for coping with filename issues under windows is to set
pop_filename_case to "undef" in the global init.p, and then use unix-style
pathnames for everything (ie / instead of \, $foo instead of %foo%). This gives
me code compatibility between windows and Unix poplog, which is more important
to me than compatibility between windows poplog and other windows apps (sicstus
prolog etc.) that might want to share the code.

Roger

Michael Worsley wrote:

> Aaron Sloman See text for reply address <Aaron.Sloman.XX@cs.bham.ac.uk>
> wrote in message 9ahp0l$2oja$1@soapbox.cs.bham.ac.uk">news:9ahp0l$2oja$1@soapbox.cs.bham.ac.uk...
> > [To reply replace "Aaron.Sloman.XX" with "A.Sloman"]
> >
> > "Michael Worsley" <mjw@praxis-cs.co.uk> writes:
> >
> > > Date: Thu, 5 Apr 2001 12:57:54 +0100
> > >
> > > Quicky question:  how do you turn off backslash-escaping within strings?
> > > (Preferably without rebuilding poplog)
> >
> > > This is a result of '\' belonging to character class 12
> >
> > I think it is class 3
>
> Yep, you are absolutely correct -- I rummaged too deeply and lost track of
> what was happening.  \ is placed into class 12 by popc_declare.ph and
> prolog.p, but this appears to only be effective locally.
>
> Section 4 of REF * ITEMISE describes the behaviour I'm observing.   What I
> want to do is use a plain string as a filename for consult etc *without* the
> alterations described by this section taking place.
>
> Any suggestions?
>
> --
> Michael Worsley
> SPARK Development Team
> Praxis Critical Systems Ltd