develooper Front page | perl.perl5.porters | Postings from November 1999

Re: [ID 19991115.012] Localization and goto()

From:
Ilya Zakharevich
Date:
November 16, 1999 08:25
Subject:
Re: [ID 19991115.012] Localization and goto()
Message ID:
199911161625.LAA21794@monk.mps.ohio-state.edu
Tom Christiansen writes:
> 
> >This is an implementation detail.  IIRC, it is documented that frame
> >is replaced, not goes away.  What happens/should-happen with locals
> >during "replacement" is debatable.
> 
> If something has been replaced, it has gone away and is no longer there.
> If I replace your dog with a cat, you would not expect your new feline
> to bark; the dog is long gone.  

Whether a person ceases to exist after a sex change operation is
highly debatable.

> >What happens, however, is making some "normal programming constructs"
> >much harder to implement.
> 
> Such as?

In the particular case I needed it was

  local @ISA = (@ISA, 'DynaLoader');
  goto \&DynaLoader::bootstrap;

Ilya



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About