Newsgroups: comp.lang.prolog
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!oitnews.harvard.edu!purdue!lerc.nasa.gov!magnus.acs.ohio-state.edu!math.ohio-state.edu!uwm.edu!chi-news.cic.net!newsfeed.internetmci.com!news.sprintlink.net!news.ecrc.de!ecrc!lyra!micha
From: micha@ecrc.de (Micha Meier)
Subject: Re: Local operator definitions
Message-ID: <DGw7tF.CI0@ecrc.de>
Sender: news@ecrc.de
Reply-To: micha@ecrc.de
Organization: European Computer-Industry Research Centre
References: <1995Oct20.102515.9161@let.rug.nl>
Date: Mon, 23 Oct 1995 08:34:27 GMT
Lines: 27

In article 9161@let.rug.nl, vannoord@let.rug.nl (Gertjan van Noord) writes:
>Sometimes I want to have operator declarations whose scope
>is limited. For example if you want to read in a file in user
>language you might want to use the `:' operator with a
>non standard Type of Precedence. However, in the rest of your
>program you don't want to be bothered with that (: is used in
>module prefixes).
>
>My question is whether something better exists than the following
>that I wrote as a library for SICStus. 

I think that what we have in Eclipse is better, but of course I'm biased :-)
In Eclipse you can specify a different syntax in each module, and this
includes operator declarations, character classes and macros. Operators
are by default local to a module, but one can also define global ones
(not really encouraged) and put them into the module interface so that
they will be exported in use_module/1.

--Micha


---
Micha Meier			------------------------------------------------
ECRC, Arabellastr. 17		The opinions expressed above are private
D-81925 Munich 81		and may not reflect those of my employer.
micha@ecrc.de, Tel. +49-89-92699-108, Fax  +49-89-92699-170

