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

infinite recursion with put and kinda recursive arrays #4841

Open
p6rt opened this issue Dec 9, 2015 · 3 comments
Open

infinite recursion with put and kinda recursive arrays #4841

p6rt opened this issue Dec 9, 2015 · 3 comments

Comments

@p6rt
Copy link

@p6rt p6rt commented Dec 9, 2015

Migrated from rt.perl.org#126858 (status was 'open')

Searchable as RT126858$

@p6rt

This comment has been minimized.

Copy link
Author

@p6rt p6rt commented Dec 9, 2015

From @gfldex

my @​b; @​b = @​b, 1; put @​b;

OUTPUT«Memory allocation failed; could not allocate 8192 bytes␤»

@p6rt

This comment has been minimized.

Copy link
Author

@p6rt p6rt commented Dec 9, 2015

From @AlexDaniel

Same thing can be achieved with something like this​:

Code​:
my @​b;
my @​a;
@​a[0] = @​b;
@​b[0] = @​a;
say @​b

Result​:
(\Array_194175640 = [[Array_194175640]])

@p6rt

This comment has been minimized.

Copy link
Author

@p6rt p6rt commented Dec 9, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.