On Mon, Jul 18, 2005 at 15:16:16 +1200, Sam Vilain wrote:
> Yuval Kogman wrote:
> >everyone gets to choose, and another thing I have in mind is the
> >Transactional role...
> > DBI::Handle does Transactional;
> >To the STM rollbacker and type checker thingy this means that any IO
> >performed b
On Sun, Jul 17, 2005 at 18:23:02 +, Luke Palmer wrote:
> > * Coercion of parameters and a class's willingness to coerce
> > into something is a better metric of distance
>
> Well, if you think metrics at all are a good way to do dispatch.
Well, we do have a notion of "close
Hi,
# Perl 5
my %hash = (a => 1, b => 2, a => 3);
warn $hash{a}; # 3
But I vaguely remember having seen...:
# Perl 6
my %hash = (a => 1, b => 2, a => 3);
say %hash;# 1
Can somebody confirm this?
--Ingo
--
Linux, the choice of a GNU | Mathematicians practice abs
Hi,
according to Damian [1]...:
my %hash = (a => 1, b => 2);
my @array = %hash;
say @array[0].isa(Pair); # true
How can I override this behaviour?
class MyHash is Hash {
# Please fill in here
}
my %hash is MyHash = (a => 1, b => 2);
my @array = %h
HaloO Ingo,
you wrote:
according to Damian [1]...:
my %hash = (a => 1, b => 2);
my @array = %hash;
say @array[0].isa(Pair); # true
How can I override this behaviour?
class MyHash is Hash {
# Please fill in here
# my idea is to overload &*infix:<=>
Matthew Hodgson wrote:
On Tue, 19 Jul 2005, Larry Wall wrote:
The * looks like a twigil but it isn't really. It's short for "*::",
Is *:: going up to the outermost Perl6 bubble or to the interpreter
that handles it? I mean where do gateways to other languages show
up: parallel to *::Perl6 lik
On Wed, 20 Jul 2005, "TSa (Thomas Sandlaß)" wrote:
Matthew Hodgson wrote:
I'm very surprised that package variables end up in OUR::, however -
because surely they're not necessarily lexically scoped - and the whole
point of 'our' was lexical global scoping, right? :/
Sorry, what is 'lexical
Sam Vilain <[EMAIL PROTECTED]> writes:
> Larry Wall wrote:
> > > Users of the class includes people subclassing the class, so to them
> > > they need to be able to use $.month_0 and $.month, even though there
> > > is no "has $.month_0" declared in the Class implementation, only
> > > "has $.m
The Perl 6 Summary for the week ending 2005-07-19
Welcome to another Perl 6 Summary, brought to you by the words
'displacement' and 'activity'. So far today I've caught up with
everything unread in NetNewsWire, my Flickr groups, every other mailing
list I'm subscribed to and complet
Is there a Perl 6 tail call syntax, and if so is it
implemented in Pugs?
&sub.goto(...);
and yes.
Oh...are tail method calls possible?
tail method calls. hrmph.
I have a few methods where I'd like to perform tail calls into another
object's methods. If I were calling one of my own methods, I
A12 and S12 describe introspection on objects and classes. The
metaclass instance has the method getmethods() which returns "method
descriptors". The design specifies several traits queryable through
these descriptors.
Methods (and subroutines) can take other traits, such as "is lvalue" or
even
Piers Cawley wrote:
> > Users of the class includes people subclassing the class, so to them
> > they need to be able to use $.month_0 and $.month, even though there
> > is no "has $.month_0" declared in the Class implementation, only
> > "has $.month".
We thought about defining the attribute va
12 matches
Mail list logo