Re: NQPMu ??

2020-01-09 Thread Todd Chester via perl6-users
On 09/01/2020 19:16, ToddAndMargo via perl6-users wrote: On 2020-01-09 10:11, ToddAndMargo via perl6-users wrote: Hi All, What am I doing wrong here? Many thanks, -T $ raku To exit type 'exit' or '^D'  > my uint32 $c; 0  > $c = 0xFFAA; Cannot find method 'qast' on object of type

Re: NQPMu ??

2020-01-09 Thread Timo Paulssen
Yes, native integers/nums don't work in the REPL (that's any uint or int with number after it, or num32 or num64 or num or int or long etc). On 09/01/2020 19:16, ToddAndMargo via perl6-users wrote: > On 2020-01-09 10:11, ToddAndMargo via perl6-users wrote: >> Hi All, >> >> What am I doing wrong

Re: NQPMu ??

2020-01-09 Thread ToddAndMargo via perl6-users
On 2020-01-09 10:11, ToddAndMargo via perl6-users wrote: Hi All, What am I doing wrong here? Many thanks, -T $ raku To exit type 'exit' or '^D' > my uint32 $c; 0 > $c = 0xFFAA; Cannot find method 'qast' on object of type NQPMu > $c = 2; Cannot find method 'qast' on object of type NQPMu

NQPMu ??

2020-01-09 Thread ToddAndMargo via perl6-users
Hi All, What am I doing wrong here? Many thanks, -T $ raku To exit type 'exit' or '^D' > my uint32 $c; 0 > $c = 0xFFAA; Cannot find method 'qast' on object of type NQPMu > $c = 2; Cannot find method 'qast' on object of type NQPMu -- ~~ Computers are

Bug to report: cardinal called an integer

2020-01-09 Thread ToddAndMargo via perl6-users
Hi All, A bug to report: $ perl6 -v This is Rakudo version 2019.07.1 built on MoarVM version 2019.07.1 implementing Perl 6.d. $ p6 'my uint32 $c; $c = "ABC";' This type cannot unbox to a native integer: P6opaque, Str in block at -e line 1 "uint32" is not an "integer". It is a cardinal.

Re: type?

2020-01-09 Thread ToddAndMargo via perl6-users
On 2020-01-09 07:38, Elizabeth Mattijsen wrote: Argh. Indeed, you can't. say int32.^name; # int32 You can only find out the name of the type,*not* when you used that type to create a variable. Because that is just a value in memory*without* a specific type. To be able to call a

Re: type?

2020-01-09 Thread Elizabeth Mattijsen
Argh. Indeed, you can't. say int32.^name; # int32 You can only find out the name of the type, *not* when you used that type to create a variable. Because that is just a value in memory *without* a specific type. To be able to call a method on it, it needs to be ugraded to its object

Re: type?

2020-01-09 Thread ToddAndMargo via perl6-users
On 9 Jan 2020, at 15:50, ToddAndMargo via perl6-users wrote: Any way to get WHAT to tell me specifically that it is an int32? my int32 $j=0x45; say $j.WHAT (Int) -T On 2020-01-09 07:04, Elizabeth Mattijsen wrote: > my int32 $a; say $a.^name; # int32 > Hi Elizabeth, Now what am I

Re: LocalFree?

2020-01-09 Thread ToddAndMargo via perl6-users
> El jue., 9 ene. 2020 a las 7:41, ToddAndMargo via perl6-users > (mailto:perl6-users@perl.org>>) escribió: > > On 2020-01-08 22:03, ToddAndMargo via perl6-users wrote: > > On 2020-01-08 21:05, ToddAndMargo via perl6-users wrote: > >> Hi All, > >> > >> Does Raku's

Re: type?

2020-01-09 Thread Elizabeth Mattijsen
my int32 $a; say $a.^name; # int32 > On 9 Jan 2020, at 15:50, ToddAndMargo via perl6-users > wrote: > > On 2020-01-08 23:06, WFB wrote: >> Hi Todd, >> dd or .WHAT will give you that information. >> dd $i; >> say $i.WHAT; >> Greetings >> On Thu, 9 Jan 2020 at 03:58, ToddAndMargo via

Re: int and Str in sub declaration question

2020-01-09 Thread ToddAndMargo via perl6-users
mailto:perl6-users@perl.org>> wrote: Hi All, In a sub declaration, is there a way to constrain a variable to only an "int32" or a "Str" (I want both)? Or do I have to put up with the other types of "Any"? Many thanks, -T On Thu, 9 Jan 2020

Re: type?

2020-01-09 Thread ToddAndMargo via perl6-users
On 2020-01-08 23:06, WFB wrote: Hi Todd, dd or .WHAT will give you that information. dd $i; say $i.WHAT; Greetings On Thu, 9 Jan 2020 at 03:58, ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: Hi All,      Is there a way to ask a variable what "type" it is?

Re: rakudo.org outdated?

2020-01-09 Thread Patrick Spek via perl6-users
On Mon, 6 Jan 2020 11:38:01 -0800 Darren Duncan wrote: > On 2020-01-06 1:18 a.m., Patrick Spek via perl6-users wrote: > > On Sun, 5 Jan 2020 18:27:01 -0800 Darren Duncan wrote: > > > >> The normal Rakudo Star releases so far are compiled, [...] > > > > For Mac and Windows, perhaps, but the