On 2020-01-25 18:36, ToddAndMargo via perl6-users wrote:
Question: how do I create a 32 bit variable that is hands off
to the boxing?
> my native D32 is repr('P6int') is Int is nativesize(32) is unsigned { }
(D32)
> my D32 $d = 0xFF44; say D32.^name; say D32.Range;
D32
-Inf^..^Inf
A
On 2020-01-25 18:21, Tobias Boege wrote:
On Sat, 25 Jan 2020, ToddAndMargo via perl6-users wrote:
Hi All,
Anyone have a workaround to my stolen uint's?
constant DWORD := uint32;
(uint32)
subset StrOrDword where Str | DWORD;
(StrOrDword)
sub x( StrOrDword $item ) {
* say "$item is
On 2020-01-25 16:58, ToddAndMargo via perl6-users wrote:
Hi All,
Anyone have a workaround to my stolen uint's?
> constant DWORD := uint32;
(uint32)
> subset StrOrDword where Str | DWORD;
(StrOrDword)
> sub x( StrOrDword $item ) {
* say "$item is a " ~ $item.^name;
* }
&x
> x( "ab
On Sat, 25 Jan 2020, ToddAndMargo via perl6-users wrote:
> Hi All,
>
> Anyone have a workaround to my stolen uint's?
>
> > constant DWORD := uint32;
> (uint32)
>
> > subset StrOrDword where Str | DWORD;
> (StrOrDword)
>
> > sub x( StrOrDword $item ) {
> * say "$item is a " ~ $item.^name;
On 2020-01-24 16:26, Peter Pentchev wrote:
PS. Don't get me wrong, I've done a lot of assembly language
programming, and it is undoubtedly the correct tool for some tasks.
Just... not all of them.
Back in "the day", I did a bunch of "in line" machine coding.
I was writing directly to video memo
Hi All,
Anyone have a workaround to my stolen uint's?
> constant DWORD := uint32;
(uint32)
> subset StrOrDword where Str | DWORD;
(StrOrDword)
> sub x( StrOrDword $item ) {
* say "$item is a " ~ $item.^name;
* }
&x
> x( "abc" );
abc is a Str
> x( 3 );
Constraint type check failed in