Re: [\n]

From: Francisco M. C. A. Azevedo <fa_at_di.fct.unl.pt>
Date: Mon 27 Nov 2000 02:35:36 PM GMT
Message-ID: <3A227138.B4990B55@di.fct.unl.pt>
Joachim Schimpf wrote:
> 
> Kish Shen wrote:
> >
> > >Syntax errors occur with [\n]:
> >
> > I think this is expected: if you want \n as an element of the list, it
> > should be enclosed in quotes (atom) or double quotes (string) ('\n' or
> > "\n").
> >
> > If what you want is [], then this is an atom and can't be seperated by a \n.
> > If all you want is a newline, then the next token should be a list element,
> > not ], hence the unexpected token error.
> 
> There is actually a compatibility option to allow this:
> 
> [eclipse 1]: local syntax_option(blanks_in_nil).
> 
> yes.
> [eclipse 2]: x([
>         ]).
> calling an undefined procedure x([]) in module eclipse
> 

OK. That's what I needed.
I hadn't yet realized it also happened with spaces ([ ]).
Thank you all.

Francisco
Received on Mon Nov 27 14:33:35 2000

This archive was generated by hypermail 2.1.8 : Wed 16 Nov 2005 06:08:02 PM GMT GMT