in reply to Re: Fun with Typed Objects 1
in thread Fun with Typed Objects 1
A good type-inferring system can gather, at compile time, the type of $dog in this construct:No, no it can't. Alas. You have no idea how much I'd like that to be the case.
my $dog = Dog->new();
It's perfectly valid to redefine, at runtime, Dog::new to return a Cat object. Or a FlatTire object.
Good compile-time type inferencing with a language as dynamic as perl is very difficult.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Fun with Typed Objects 1
by chromatic (Archbishop) on Apr 02, 2003 at 22:11 UTC | |
by Elian (Parson) on Apr 02, 2003 at 22:13 UTC |