in reply to Re: Noble DOT vs the Allmighty ARROW
in thread Noble DOT vs the Allmighty ARROW

A quick thought but the dot is hardly unique to C. I wouldnt be suprised to discover it actually comes from ALGOL which (iirc) is higher up in both C and PASCAL's family trees.

Even if it isnt, it certainly has been part of PASCAL, Modula-2, C, C++, JAVA, VB and a whole host of other languages.

OTOH, I dont think ill like doing

my $s=sub{}; $s.();
Hmm, come to think of it what will be the syntax for dereferencing a CODE ref? The above cant be right can it?

Yves / DeMerphq
---
Writing a good benchmark isnt as easy as it might look.

Replies are listed 'Best First'.
Re: Re: Re: Noble DOT vs the Allmighty ARROW
by broquaint (Abbot) on May 08, 2002 at 17:02 UTC
    Hmm, come to think of it what will be the syntax for dereferencing a CODE ref?
    According to a recent article in the TPJ Magazine by TheDamian it will look something like this
    my $anonsub = sub { ... }; $anonsub(@args);

    HTH

    _________
    broquaint