in reply to Overloading operators: -> to .
You could probably overload '.' to mean '->', but '->' is not overloadable. Watch out for interaction with '.='. You may not be able to pass arguments to your methods, since '.' only takes two arguments.
Why do this? I don't much approve of the purging of C notation from perl 6, and there seems to be no reason at all for it to spill back into perl 5.
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Overloading operators: -> to .
by Abigail-II (Bishop) on Sep 26, 2003 at 08:55 UTC |