Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[perl #31867] [BUG] ResizablePMCArray doesn't pop

0 views
Skip to first unread message

Will Coleda

unread,
Oct 6, 2004, 10:15:11 AM10/6/04
to bugs-bi...@rt.perl.org
# New Ticket Created by Will Coleda
# Please include the string: [perl #31867]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org:80/rt3/Ticket/Display.html?id=31867 >


$P1 = new ResizablePMCArray
$P2 = new String
$P2 = "42"
push $P1, $P2
$P3 = pop $P1

dies with "pop_pmc() not implemented in class 'ResizablePMCArray'\n

(Literal \ there, also)

Leopold Toetsch

unread,
Oct 6, 2004, 11:54:56 AM10/6/04
to perl6-i...@perl.org
Will Coleda <parrotbug...@parrotcode.org> wrote:

> dies with "pop_pmc() not implemented in class 'ResizablePMCArray'\n

and shift, unshift, freeze, thaw and probably some more.

> (Literal \ there, also)

Yep - fixed. But these messages will become real_exceptions finally. Classes
definitely will need a lot of cleanup.

For the exception thingy: We'll probably need some error message
customization:

A typical Python message ...

>>> t=()
>>> t.append(1)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
AttributeError: 'tuple' object has no attribute 'append'


... WRT attributes will not read nicely for a Perler's eye.

leo

0 new messages