Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typed array attributes are initially not empty #661

Closed
p6rt opened this issue Jan 27, 2009 · 5 comments
Closed

typed array attributes are initially not empty #661

p6rt opened this issue Jan 27, 2009 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jan 27, 2009

Migrated from rt.perl.org#62838 (status was 'resolved')

Searchable as RT62838$

@p6rt
Copy link
Author

p6rt commented Jan 27, 2009

From @mberends

Compare the following two command lines, both should print
0​:

perl6 -e 'class A { has @​!a; method m { say @​!a.elems; }; };
A.new.m;'

perl6 -e 'class A { has Str @​!a; method m { say @​!a.elems;
}; }; A.new.m;'

The latter prints 1, and a more extensive example using a
class type instead of Str suggests that the array contains a
protoobject. No bisect results yet, but r35309 (just
pre-rvar2) prints 0 both times.

@p6rt
Copy link
Author

p6rt commented Apr 28, 2009

From @jnthn

On Tue Jan 27 06​:34​:17 2009, mberends wrote​:

Compare the following two command lines, both should print
0​:

perl6 -e 'class A { has @​!a; method m { say @​!a.elems; }; };
A.new.m;'

perl6 -e 'class A { has Str @​!a; method m { say @​!a.elems;
}; }; A.new.m;'

The latter prints 1, and a more extensive example using a
class type instead of Str suggests that the array contains a
protoobject. No bisect results yet, but r35309 (just
pre-rvar2) prints 0 both times.

Just tried this in current Rakudo, and it outputs 0 both times as
expected. Assigning to moritz++ for spectets.

Thanks,

Jonathan

@p6rt
Copy link
Author

p6rt commented Apr 28, 2009

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Apr 29, 2009

From @moritz

Tested in the ever-growing S12-attributes/instance.t.

Cheers,
Moritz

@p6rt
Copy link
Author

p6rt commented Apr 29, 2009

@moritz - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Apr 29, 2009
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant