Last active
August 29, 2015 14:23
-
-
Save jonathanstowe/98025c6b0df7a6f992dc to your computer and use it in GitHub Desktop.
CArray weirdness
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use v6; | |
use NativeCall; | |
my @buff := CArray[num64].new; | |
my @in = (^100).map({Num($_)}); | |
for ^100 -> $i { | |
@buff[$i] = @in[$i]; | |
} | |
my @in2; | |
for ^100 -> $i { | |
@in2[$i] = @buff[$i]; | |
} | |
my @buff2 := CArray[num64].new; | |
for ^100 -> $i { | |
@buff2[$i] = @in2[$i]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment