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

binding aggregate elements fails with 'rtype not set' #492

Closed
p6rt opened this issue Dec 16, 2008 · 8 comments
Closed

binding aggregate elements fails with 'rtype not set' #492

p6rt opened this issue Dec 16, 2008 · 8 comments

Comments

@p6rt
Copy link

p6rt commented Dec 16, 2008

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

Searchable as RT61412$

@p6rt
Copy link
Author

p6rt commented Dec 16, 2008

From @jeffhorwitz

In r33954 this succeeds in Rakudo​:

my %hash; %hash<foo> = 'bar'; say %hash<foo>;
bar

but this fails during PAST->POST​:

my %hash; %hash<foo> := 'bar'; say %hash<foo>;
rtype not set

This worked fine as of r33837.

-jeff

@p6rt
Copy link
Author

p6rt commented Dec 17, 2008

From @pmichaud

On Tue, Dec 16, 2008 at 10​:02​:23AM -0800, Jeff Horwitz wrote​:

# New Ticket Created by Jeff Horwitz
# Please include the string​: [perl #​61412]
# in the subject line of all future correspondence about this issue.
# <URL​: http://rt.perl.org/rt3/Ticket/Display.html?id=61412 >

In r33954 this succeeds in Rakudo​:

my %hash; %hash<foo> = 'bar'; say %hash<foo>;
bar

but this fails during PAST->POST​:

my %hash; %hash<foo> := 'bar'; say %hash<foo>;
rtype not set

This worked fine as of r33837.

The addition of the capability to do array and hash slices has
cause binding of array and hash elements to fail. I decided
that slices and list assignment were more important right now
than binding elements of aggregates, so we've regressed there
for now.

I don't see a short-term fix on the horizon, as we'll have to
figure out exactly how we're going to handle such bindings/references
in the future. Parrot isn't exactly set up for handling this
easily in a HLL like Perl 6, I'm afraid.

Pm

@p6rt
Copy link
Author

p6rt commented Dec 17, 2008

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

@p6rt
Copy link
Author

p6rt commented Dec 17, 2008

From @nwc10

On Tue, Dec 16, 2008 at 09​:55​:23PM -0600, Patrick R. Michaud wrote​:

I don't see a short-term fix on the horizon, as we'll have to
figure out exactly how we're going to handle such bindings/references
in the future. Parrot isn't exactly set up for handling this
easily in a HLL like Perl 6, I'm afraid.

Are any virtual machines?

(Is there one that Parrot can steal ideas from, I mean, imitate.
Er, I mean flatter)

Nicholas Clark

@p6rt
Copy link
Author

p6rt commented Mar 10, 2009

From @masak

<masak> perl6​: my @​a = 1,2,3; @​a[2] := []; say @​a.perl
<p6eval> elf 25787​: OUTPUT«[1,2,3]␤»
<p6eval> ..rakudo 95ce39​: OUTPUT«rtype not set [...]
<p6eval> ..pugs​: OUTPUT«\(1, 2, ())␤»
* masak submits rakudobug

Modulo the exact syntax, I'd expect the answer from Rakudo to be more
like the one from Pugs.

@p6rt
Copy link
Author

p6rt commented Aug 20, 2010

From @bbkr

On Pisa build​:

[14​:10] <bbkr> rakudo​: my %hash; %hash<foo> := 'bar'; say %hash<foo>;
[14​:10] <p6eval> rakudo e45bf6​: OUTPUT«bar␤»
[14​:11] <bbkr> rakudo​: my @​a = 1,2,3; @​a[2] := []; say @​a.perl
[14​:12] <p6eval> rakudo e45bf6​: OUTPUT«[1, 2, []]␤»

taken for tests

@p6rt
Copy link
Author

p6rt commented Feb 22, 2011

From @zhuomingliang

test added. see Raku/roast@f47e392c19

@p6rt
Copy link
Author

p6rt commented Feb 22, 2011

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant