develooper Front page | perl.perl6.language | Postings from September 2000

RE: the C JIT

Thread Previous | Thread Next
From:
Myers, Dirk
Date:
September 6, 2000 13:38
Subject:
RE: the C JIT
Message ID:
78445BA01DCED21197B400A0C9EA5F7E01E030BF@exeug3
	> >         s/x/5/; # this is still going to replace
	> >                 # all the eckses in $_ with fives.

	> Why? This is an arbitrary decision if you've declared variables to
be
	> barewords.

I think it's a sane decision -- IMHO barewords shouldn't be allowed to
interpolate.  Of course, this means that to use the value of a bareword
variable in a regex, you'd have to do something like:

	int x = 3 ;

	...  # Do stuff with x, or not.

	my int $y = x ;

	s/$y/5/ ;

Which seems like a roundabout way to do it.

I still find this whole idea confusing, though.  Just out of curiosity,
though, would:

	#include a way for users to bail out gracefully

be a syntax error?  And how about:

	int length = 256 ;

and, if that's legal, what does:

	print "I wonder what this is : " . length  ;

do?

Dirk

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