On Tue, 2008-12-02 at 21:21 +0100, Leon Timmermans wrote:
> If you really want it, a macro can fix all of this for you.
> That's the beauty of macros: these kinds of things are possible if you
> need them.
Sure, but user-written macros are also an easy out that allows one to
avoid making hard deci
On Tue, 2008-12-02 at 13:07 -0700, David Green wrote:
> On 2008-Dec-2, at 12:33 pm, Geoffrey Broadwell wrote:
> > On Tue, 2008-12-02 at 08:50 +0100, Carl Mäsak wrote:
> >> Darren (>):
> >>> How does one write anonymous value literals of those types?
> >> Why is the latter method [conversion] insuff
Daniel Ruoso wrote:
Em Seg, 2008-12-01 às 18:21 -0800, Darren Duncan escreveu:
I'm wondering how to write anonymous value literals of some Perl 6 basic types,
and I didn't see mention of this in synopsis 2.
Getting away from your question entirely, I think the issue here is that
while Perl 6 h
On 2008-Dec-2, at 12:33 pm, Geoffrey Broadwell wrote:
On Tue, 2008-12-02 at 08:50 +0100, Carl Mäsak wrote:
Darren (>):
How does one write anonymous value literals of those types?
Why is the latter method [conversion] insufficient for your needs?
Efficiency reasons, among others.
Surely the
On Tue, 2008-12-02 at 08:50 +0100, Carl Mäsak wrote:
> Darren (>):
> > Bit
> > Blob
> > Set
> > Bag
> > Mapping
> >
> > How does one write anonymous value literals of those types? And I mean
> > directly, not by writing a literal of some other type and using a conversion
> > function to deriv
Em Seg, 2008-12-01 às 18:21 -0800, Darren Duncan escreveu:
> I'm wondering how to write anonymous value literals of some Perl 6 basic
> types,
> and I didn't see mention of this in synopsis 2.
Getting away from your question entirely, I think the issue here is that
while Perl 6 has support for s
On Mon, Dec 01, 2008 at 04:25:19AM -0800, [EMAIL PROTECTED] (via RT) wrote:
> Rakudo as of r33417 fails t/spec/S12-methods/default-trait.t and
> t/spec/S12-methods/multi.t:
I think this problem is very likely related to RT #60910, as
t/spec/S12-methods/multi.t works fine in r33248 and r33385
but f
Darren Duncan (>):
> Regarding Blob, that's not a collection type and its a fundamental type and
> it still needs special syntax; I did suggest one in my previous message.
Frankly, I don't see why it should need special syntax. Blobs are,
most of the time, not typed in through the keyboard (too mu
The literals for Bit are just 0 and 1.
--
Mark Biggar
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
-- Original message --
From: "Carl Mäsak" <[EMAIL PROTECTED]>
> Darren (>):
> > Bit
> > Blob
> > Set
> > Bag
> > Mapping
> >
> > How does one write ano
On Tue, Dec 02, 2008 at 02:08:08AM +0300, ruslan usifov wrote:
> sub test(@test is copy, $as)
> {
> @test[0] = 123;
> };
>
> my @test = (1, 2, 3, 4);
> test(@test);
>
> print @test[0];
>
> After that perl6.exe will produce:
>
> too few arguments passed (1) - 2 params expected
Rakudo is cor
Darren Duncan wrote:
> Hello,
>
> I'm wondering how to write anonymous value literals of some Perl 6 basic
> types,
> and I didn't see mention of this in synopsis 2.
>
> Now, with some basic types, I know how to do it, examples:
>
>Bool # Bool::True
>Int # 42 or 0x17 or :12
>
[EMAIL PROTECTED] (via RT) wrote:
Rakudo as of r33417 fails t/spec/S12-methods/default-trait.t and
t/spec/S12-methods/multi.t:
A method named 'bar' already exists in class 'Foo'. It may have been supplied
by a role.
current instr.: '!TOPERL6MULTISUB' pc 13534 (src/gen_builtins.pir:8162)
All Pe
Moritz Lenz wrote:
Darren Duncan wrote:
But some significant ones I don't know and really want to know:
Bit
Blob
Set
Bag
Mapping
I guess that Mapping is analog to the List/Seq case:
:a(2), :a;
Sure, but given how Pair literals work, how would you know whether the above (i
Carl Mäsak wrote:
Darren (>):
Bit
Blob
Set
Bag
Mapping
How does one write anonymous value literals of those types? And I mean
directly, not by writing a literal of some other type and using a conversion
function to derive the above?
Why is the latter method insufficient for your needs?
14 matches
Mail list logo