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 NQPMu
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 he
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
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 like
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. I
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 metho
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
equi
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 do
> El jue., 9 ene. 2020 a las 7:41, ToddAndMargo via perl6-users
> (mailto:perl6-us...@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 NativeCal
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 perl6-users
mailto:perl6-us...@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
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-us...@perl.org>> wrote:
Hi All,
Is there a way to ask a variable what "type" it is?
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
13 matches
Mail list logo