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

Re: Purpose of Strong Typing.

Thread Previous | Thread Next
From:
Joshua N Pritikin
Date:
September 2, 1999 12:10
Subject:
Re: Purpose of Strong Typing.
Message ID:
19990902151008.T9304@eq1062.wks.na.deuba.com
On Thu, Sep 02, 1999 at 06:57:43PM +0000, sfink@digital-integrity.com wrote:
> Larry Wall wrote:
> > On the subject of optimizations in the backends, if you declare
> > 
> >     my Dog $spot;
> > 
> > then you don't necessarily have to store $spot in an SvRV.  It could just
> > be a pointer to the thingy, as long as the generated C code keeps the
> > ref counts on the thingy straight.
> 
> Of course, you have to be careful, because doing this would introduce
> the same problems as with traditional compilers -- namely, things in
> 'registers' have a much more restrictive interface than those with the
> full flush of reality upon them. eg, debuggers can't get at them.

Debuggers?  Who needs them?  Seriously, that's one of the reasons I love
perl.  I never use a debugger anymore and that's a big deal consider
that I come from a C++ background.

That's not to say that there shouldn't be a way to turn off variable
hiding optimizations.

$0.02

-- 
"Does `competition' have an abstract purpose?"
       via, but not speaking for Deutsche Bank

Thread Previous | Thread Next


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