develooper Front page | perl.perl6.internals | Postings from December 2005

1:N mapping from registers to names

Thread Previous | Thread Next
From:
Audrey Tang
Date:
December 16, 2005 07:48
Subject:
1:N mapping from registers to names
Message ID:
43A2D530.5090507@autrijus.org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Matt Diephouse wrote:
| While working out some bugs in ParTcl I came across something roughly
| equivalent to the following Perl code (I'm using Perl because I
| believe more people know Perl than Tcl, at least on this list):
|
|   #!/usr/bin/perl
|   $var   = "Foo";
|   *alias = *var;
|   $alias = undef;
|   $alias = "Baz";
|   print $var, "\n";

On a somewhat related note, I'd very much like the ability for two
LexInfo names to point to the same underlying register, as it would make
certain Perl6isms easier ($!foo vs $foo, for example).

Leo explained on #parrot a while ago that there's nothing
architecturally forbidding it, but the current implementation uses a 1:1
mapping for simplicity.  Is it possible to get a 1:N mapping from
registers to names?

Audrey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFDotUwtLPdNzw1AaARAnuGAKCdi6+oWlJl/ZggpG8/4FMRq6OKzgCgjvn3
U/WSA4/dgLfBQMIFHze4grc=
=8TDb
-----END PGP SIGNATURE-----

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