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

Re: [Sc-devel] tiny parser error?



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

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?

hjh


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
>         test+1
> }
>
> f= {|test|/*no*/
>         test+1
> }
>
> need a space...
> f= {|test| //yes
>         test+1
> }


-- 
James Harkins /// dewdrop world
jamshark70@xxxxxxxxxxxxxxxxx
http://www.dewdrop-world.net

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman