develooper Front page | perl.perl6.internals | Postings from November 2001

Re: Yet another switch/goto implementation

Thread Previous | Thread Next
From:
Dan Sugalski
Date:
November 4, 2001 10:31
Subject:
Re: Yet another switch/goto implementation
Message ID:
5.1.0.14.2.20011104133037.020a74b8@pop.sidhe.org
At 12:19 PM 11/4/2001 -0500, Michael Fischer wrote:
>On Nov 04, Daniel Grunblatt <daniel@grunblatt.com.ar> took up a keyboard 
>and banged out
> > First of all you miss typed:
> > -if ($c{do_opt_t} eq 'goto' and $c{cc} !~ /gcc/i ) {
> > +if ($c{do_op_t} eq 'goto' and $c{cc} !~ /cc/i ) {
>
>hmm. Thats not what my diff has. Point is, if you chose
>'goto', $c{cc} /isn't/ gcc, there's a problem. $c{cc} is
>just whatever you compiled perl5 with, I believe.

Perhaps we need a configure probe to see if a compiler does computed gotos. 
Just because it's always gcc now doesn't mean it won't be in other 
compilers later.

					Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
dan@sidhe.org                         have teddy bears and even
                                      teddy bears get drunk


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