On Sat, May 06, 2000 at 08:58:11AM +1000, Damian Conway wrote: > > See also > > > > my Dog $snoopy; > > > > and PREPARE method. > > This is orthogonal to typed lexicals. But not orthogonal to PREPARE. > In fact, there's no reason you couldn't: > > classify my Dog $snoopy => 'Pilot'; > > Typed lexicals aren't enough on their own. Specifically, they won't stop > type-incompatible assignments that introduce subtle bugs: > > my Dog $snoopy; PREPARE ties $snoopy to Dog::Tie... > $snoopy = Alligator->new(); Dog::Tie::STORE catches the problem. IlyaThread Previous | Thread Next