Front page | perl.perl6.language |
Postings from April 2002
$i := 1;
Thread Previous
|
Thread Next
From:
Rich Morin
Date:
April 5, 2002 11:03
Subject:
$i := 1;
Message ID:
p05100360b8d3a3d4673e@[192.168.254.205]
At a recent talk, Larry showed a line of code that was something like:
(@a; @b; @c) := (@x; @y; 1,2,3);
I'm curious about the mapping of @c to a list of constants; if I write
@c[0]++;
am I bumping the value of 1? As it happens, this used to be the case
on some old Fortrans that used literal pools. I _assume_ Perl6 won't
have such a problem, but I'd like to hear how it works out...
-r
P.S. The Fortran code was something like:
PROGRAM FOO
CALL BAR(1)
I = 1
PRINT I
STOP
END
SUBROUTINE BAR(J)
J = 2
RETURN
END
--
email: rdm@cfcl.com; phone: +1 650-873-7841
http://www.cfcl.com/rdm - my home page, resume, etc.
http://www.cfcl.com/Meta - The FreeBSD Browser, Meta Project, etc.
http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series
http://www.ptf.com/tdc - Prime Time Freeware's Darwin Collection
Thread Previous
|
Thread Next