in reply to OOP, ".NET", Perl, and all that
Now, while Perl doesn't have this directly, it's very easy to do , particullary if you pass arguments by hash. Damian's OOP has examples like:
Or of course, you have friendly operators like ||= (or //= that is in Perl6). It's not as 'simple' as C++ (or C#, apparently)'s default arguments, but they're still there.my %func_defaults = ( a=>3, b=>4, c=>5 ); sub func { %my_args = ( %func_defaults, @_ ); ... }
I know Java doesn't have this feature, nor C.
-----------------------------------------------------
Dr. Michael K. Neylon - mneylon-pm@masemware.com
||
"You've left the lens cap of your mind on again, Pinky" - The Brain
"I can see my house from here!"
It's not what you know, but knowing how to find it if you don't know that's important
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: OOP,
by John M. Dlugosz (Monsignor) on Dec 15, 2001 at 01:35 UTC | |
by boo_radley (Parson) on Dec 15, 2001 at 04:44 UTC | |
by John M. Dlugosz (Monsignor) on Dec 17, 2001 at 21:59 UTC |