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

bufs need .push #4243

Closed
p6rt opened this issue May 13, 2015 · 7 comments
Closed

bufs need .push #4243

p6rt opened this issue May 13, 2015 · 7 comments

Comments

@p6rt
Copy link

p6rt commented May 13, 2015

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

Searchable as RT125182$

@p6rt
Copy link
Author

p6rt commented May 13, 2015

From @rjbs

A buf is supposed to be mutable, but I can't push to it. TimToday++ said this
was incorrect behavior and just NYI.

  ~$ perl6 -e 'my $b = Buf.new(1,2,3); $b.push(4)'
  Cannot call push(Buf​: Int); none of these signatures match​:
  (Any​:U \SELF​: *@​values, *%_)
  in block <unit> at -e​:1

  ~$ perl6 -e 'my buf8 $b; $b.push(4)'
  Cannot modify an immutable Buf[uint8]

--
rjbs

@p6rt
Copy link
Author

p6rt commented May 29, 2015

From @hoelzro

On Wed May 13 16​:38​:02 2015, rjbs wrote​:

A buf is supposed to be mutable, but I can't push to it. TimToday++
said this
was incorrect behavior and just NYI.

~$ perl6 -e 'my $b = Buf.new(1,2,3); $b.push(4)'
Cannot call push(Buf​: Int); none of these signatures match​:
(Any​:U \SELF​: *@​values, *%_)
in block <unit> at -e​:1

~$ perl6 -e 'my buf8 $b; $b.push(4)'
Cannot modify an immutable Buf[uint8]

This is implemented in Rakudo now.

@p6rt
Copy link
Author

p6rt commented May 29, 2015

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

@p6rt
Copy link
Author

p6rt commented May 29, 2015

From @hoelzro

On Fri May 29 05​:54​:10 2015, rob@​hoelz.ro wrote​:

On Wed May 13 16​:38​:02 2015, rjbs wrote​:

A buf is supposed to be mutable, but I can't push to it. TimToday++
said this
was incorrect behavior and just NYI.

~$ perl6 -e 'my $b = Buf.new(1,2,3); $b.push(4)'
Cannot call push(Buf​: Int); none of these signatures match​:
(Any​:U \SELF​: *@​values, *%_)
in block <unit> at -e​:1

~$ perl6 -e 'my buf8 $b; $b.push(4)'
Cannot modify an immutable Buf[uint8]

This is implemented in Rakudo now.

...but not with a listy argument. D'oh!

@p6rt
Copy link
Author

p6rt commented May 29, 2015

From @hoelzro

On Fri May 29 06​:23​:54 2015, rob@​hoelz.ro wrote​:

On Fri May 29 05​:54​:10 2015, rob@​hoelz.ro wrote​:

On Wed May 13 16​:38​:02 2015, rjbs wrote​:

A buf is supposed to be mutable, but I can't push to it. TimToday++
said this
was incorrect behavior and just NYI.

~$ perl6 -e 'my $b = Buf.new(1,2,3); $b.push(4)'
Cannot call push(Buf​: Int); none of these signatures match​:
(Any​:U \SELF​: *@​values, *%_)
in block <unit> at -e​:1

~$ perl6 -e 'my buf8 $b; $b.push(4)'
Cannot modify an immutable Buf[uint8]

This is implemented in Rakudo now.

...but not with a listy argument. D'oh!

This should be working now!

@p6rt p6rt closed this as completed Jun 2, 2015
@p6rt
Copy link
Author

p6rt commented Jun 2, 2015

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

@p6rt
Copy link
Author

p6rt commented May 18, 2016

From @coke

Tests in S03-operators/buf.t

hoelzro++

--
Will "Coke" Coleda

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