Re: [\n]

From: Joachim Schimpf <j.schimpf_at_icparc.ic.ac.uk>
Date: Mon 27 Nov 2000 01:42:27 PM GMT
Message-ID: <3A2264C3.20B4837D@icparc.ic.ac.uk>
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


-- 
 Joachim Schimpf              /             phone: +44 20 7594 8187
 IC-Parc, Imperial College   /            mailto:J.Schimpf@ic.ac.uk
 London SW7 2AZ, UK         /    http://www.icparc.ic.ac.uk/eclipse
Received on Mon Nov 27 13:42:27 2000

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