Leopold Toetsch <[EMAIL PROTECTED]> writes:

> Piers Cawley <[EMAIL PROTECTED]> wrote:
>> Leopold Toetsch <[EMAIL PROTECTED]> writes:
>
>>> Piers Cawley <[EMAIL PROTECTED]> wrote:
>>>
>>>> Remember how Leo wanted an example of how continuations were used?
>>>
>>> Great example - I don't understand how it wotks though :) - but I
>>> understand, why the PIR code might fail:
>
>> Okay, I'll try and explain it.
>
> Great thanks. (I was just going through it and sometimes I have a
> slight clue how it works (or better I know what's going on but I'm for
> sure unable to write such a piece of code from scratch (I'm missing some
> experience with this kind of progamming languages (like lisp et al))))
>
>>     $P0 = find_lex("fail")
>>     $P0() # Why can't we do this? Does $P0.() work any better?
>
> It used to give tons of reduce conflicts and wrong code ... wait ... try
> again ... now it works ... fixed.

Oh, cool.

> $P0.() would be a method call w/o method, i.e. a parser error.

Yean, I was thinking analogous to Perl 6's proposed syntax $foo.(...)
says to treat $foo as a function reference and call it with appropriate
arguments.

Reply via email to