The behavious still seems the same:
% perl6 --v
This is Rakudo version 2016.07.1-135-g77724b2 built on MoarVM version
2016.07-16-g85b6537
implementing Perl 6.c.
% perl6 -e'my $s = False but True; say $s; say $s.so;'
True
True
This is inconsistent with:
% perl6 -e'my $s = 0 but True; say $s;
I've added a fudged test to S12-introspection/attributes.t
that the container shape is as declared; not a Whatever.
On Wed, 19 Apr 2017 03:14:35 -0700, c...@zoffix.com wrote:
> On Tue, 18 Apr 2017 20:34:15 -0700, david.warring wrote:
> > AFAIK there's currently no way of introspecting the shape
Tests added with roast commit
https://github.com/perl6/roast/commit/d776a06e52c35d6cbb7b7bbade7b7a15b97ecff8
One remaining todo test for the subset of a subset case, ie:
subset S of Int; subset S2 of S; say S2.isa(S)
On Sun, Sep 17, 2017 at 6:34 AM, David Warring
After that commit: subset S of Int; S.isa(True) returns true as expected.
I've noticed a quibble with subset of a subset:
perl6 -e'subset S of Int; subset S2 of S; say S2.isa(S)'
False
Should be True.
On Sun, Sep 17, 2017 at 3:17 AM, Aleks-Daniel Jakimenko-Aleksejev via RT <
Final issues resolved with
https://github.com/rakudo/rakudo/commit/cee1be22cff6153506e31df2916f8a0be27b5fc8
On Sat, 16 Sep 2017 12:12:35 -0700, david.warring wrote:
> Tests added with roast commit
> https://github.com/perl6/roast/commit/d776a06e52c35d6cbb7b7bbade7b7a15b97ecff8
>
> One remaining
Thanks for that. As a worka-around Rakudo seems to do a better job, if I
give it a helping hand viz a TWEAK method:
use NativeCall;
class Point is repr('CStruct') {
has uint8 $.x;
has uint8 $.y;
}
class MyStruct2 is repr('CStruct') {
HAS Point $.point; # <-- embedded
has int8
On Tue, 26 Apr 2016 15:24:57 -0700, sortiz wrote:
> Hi David,
>
> Can you give a try to NativeHelpers::Pointer, part of NativeHelpers::Blob?
>
> When well tested I plan push it to core.
>
> Regards.
>
> Salvador Ortiz.
Hi Salvador,
That looks. OK. Can it go straight into core?
Attached is my use case which is parsing of PDF cross reference indices.
There are normally three numeric entries per line. e.g.
xref
0 8
00 65535 f
09 0 n
74 0 n
000120 0 n
Which populates nicely into an array of 'n' lines of shape 3.
There's the rare,
Thanks Salvador,
Now in Rakudo core
https://github.com/rakudo/rakudo/commit/3ca6554fdd8ff91da5423e85d4a2b7d309949531
On Tue, 03 Oct 2017 10:41:41 -0700, david.warring wrote:
> On Tue, 26 Apr 2016 15:24:57 -0700, sortiz wrote:
> > Hi David,
> >
> > Can you give a try to NativeHelpers::Pointer,
On Mon, 21 Aug 2017 07:38:56 -0700, alex.jakime...@gmail.com wrote:
> It was removed completely for 2017.08 release.
>
> Rakudo commit:
> https://github.com/rakudo/rakudo/commit/465d91abdfda038cb7feda35f7966be4ec39acf3
> Discussion: https://irclog.perlgeek.de/perl6-dev/2017-08-21#i_15048995
> On
Can confirm this is still current behaviour with Rakudo 2019. I have came
across exactly the same issue and found this ticket. I've noticed, If I change
the example to catch exceptions. It then runs:
sub start-element($, $elem, $attr)
{
say "open $elem".indent($depth * 4);
11 matches
Mail list logo