On Wed, 25 Apr 2001 15:52:47 -0600 (MDT), Dan Brian wrote:

>the idea of a "dereference operator" dumbfounds lots
>of folks. "What's an object got to do with a reference, much less a
>pointer?" A p5 object is very confusing to others for this reason, and so
>is the syntax.

So you want a method invocation syntax that doesn't remind people of
references. OK. But why does it have to be the dot? It is already taken.
Sorry. Use an operator that doesn't exist yet in Perl. For example, old
style VB used "!" to connect objects and their properties:

        label1!caption = "Hi!"

is the same as

        label1.caption = "Hi!"

So why not

        $object!method("foo", "bar");


Reply via email to