in reply to Re: overloading core function and non-existing operator
in thread overloading core function and non-existing operator
Just want to let my mind fly freely for a moment, with Perl and yet not ...
Say it is more consistent, and main scope itself is also a package just like any other package. Will that help to make ++ overloadable in main? My answer to myself was probably no, as the other side of this issue, probably a more important one is not about scope, but about "native data type". Even if you can overload with main scope, it makes sense not to let one overload operators against native data type, for example scalar.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: overloading core function and non-existing operator (...constants)
by tye (Sage) on Aug 08, 2005 at 06:04 UTC | |
|
Re^3: overloading core function and non-existing operator
by tinita (Parson) on Aug 08, 2005 at 09:54 UTC |