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

Assigning an Int to a substr-rw doesn't work #4321

Closed
p6rt opened this issue Jun 13, 2015 · 5 comments
Closed

Assigning an Int to a substr-rw doesn't work #4321

p6rt opened this issue Jun 13, 2015 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Jun 13, 2015

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

Searchable as RT125402$

@p6rt
Copy link
Author

p6rt commented Jun 13, 2015

From @hoelzro

The following fails with "This type cannot unbox to a native string"​:

  my $s = 'foobar';
  $s.substr-rw(3, 3) = 1;

I would expect that substr-rw would DWIM and stringify the RHS of the assignment above.

@p6rt
Copy link
Author

p6rt commented Jun 13, 2015

From @hoelzro

test.p6

@p6rt
Copy link
Author

p6rt commented Jun 23, 2015

From @jnthn

On Sat Jun 13 14​:52​:23 2015, rob@​hoelz.ro wrote​:

The following fails with "This type cannot unbox to a native string"​:

my $s = 'foobar';
$s.substr-rw(3, 3) = 1;

I would expect that substr-rw would DWIM and stringify the RHS of the
assignment above.

Indeed. Fixed, and tested in S32-str/substr-rw.t.

@p6rt
Copy link
Author

p6rt commented Jun 23, 2015

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

@p6rt
Copy link
Author

p6rt commented Jun 23, 2015

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

@p6rt p6rt closed this as completed Jun 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant