Front page | perl.perl6.language |
Postings from August 2001
From: Bryan C . Warnock
August 1, 2001 20:09
Message ID: 0108012308500N.email@example.com
If I've got a set of matching properties, do I get to build hotels on my
There are a number of properties "built into" Perl 6. Nearly all of these
properties don't make sense across the board - eg, a scalar won't have a
dimension, a hash won't prompt, etc.
So given the two different sets that you must consider (variable versus
value, and hash versus array versus scalar versus filehandle), are
properties that are meaningless for some section usable by the user?
(Realizing that there was talk about distinguishing between value and
# scalar variable property doesn't allow $foo to be changed
$foo is constant = 3;
# But this doesn't make sense, as 3 is already constant.
$foo = 3 is constant;
# Error? Or simply user-defined?
$*ARGS is chomped; # Fine, but....
%hash is chomped;
# Is this legal? An error?
# (The chomp character is defined by the IRS attribute of a filehandle.)
# Can I define something that says to chomp the values entered
# into the hash? The keys?
# What if the hash is tied to a filehandle?
Bryan C. Warnock
by Bryan C . Warnock