Front page | perl.perl6.internals |
Postings from September 2001
[COMMIT] assemble.pl
From:
Gibbs Tanton - tgibbs
Date:
September 26, 2001 20:51
Subject:
[COMMIT] assemble.pl
Message ID:
ABEE81BE08ADD311B6A1009027DE908D09E95885@conmsx03.conway.acxiom.com
I changed assemble.pl so that the 0b constants will work on versions of perl
prior to 5.6. The problem was that oct before 5.6 did not recognize 0b as a
valid prefix. Therefore, I created a separate function from_binary that
converts binary numbers to decimal numbers and I now call it instead of oct
for binary constants. It is a rather crude implementation (I just loop
through each bit and multiply by the appropriate power of 2); however, I
could not find a pretty implementation that held up in a 64 bit environment.
If anyone knows of one, please submit a patch :)
Thanks!
Tanton
-
[COMMIT] assemble.pl
by Gibbs Tanton - tgibbs