[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sc-devel] tiny parser error?

ah, i forgot about those binary ones.  thanks.

1|/*comment*/2	//no
1/*comment*/|2	//yes
1&/*comment*/2	//yes
1/*comment*/&2	//no

i'll leave it and adapt.

Am 12.12.2007 um 23:22 schrieb James Harkins:

The vertical bar is also used in binary operators like || - |/ is in
theory a legitimate binary operator name, although nobody implements

Doesn't seem like a bug to me, more of a gotcha. When you leave out
the space, it's ambiguous - is it an operator or not?


On Dec 12, 2007 5:05 PM, Fredrik Olofsson <f@xxxxxxxxxxxxxxxxxxx> wrote:
i don't know if this even qualifies as an error.  writing arguments
with vertical lines, comments needs an extra space.

this works...
f= {|test|test+1}

these don't...
f= {|test|//no

f= {|test|/*no*/

need a space...
f= {|test| //yes

     fredrikolofsson.com     klippav.org     musicalfieldsforever.com