Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

lbr (5199)

  (email not shown publicly)
+ -

  Comment: Why...? (Score 1) on 2009.06.03 10:54

by lbr on 2009.06.03 10:54 (#68922)
Attached to: Spot the Bug!
...did you call it 'some_method'. has is not sub. It's a nice red herring though, throwing me off completely till I saw rjbs's answer. If it'd been called "some_field", it'd been obvious.

rjbs has explained what went wrong, but I'm curious why you'd expect it to behave differently. The behaviour is exactly as documented in Moose's section on is => 'rw'|'ro'.

Read More 21 comments
Comments: 21
+ -

  Comment: Re:Self and NewtonScript (Score 1) on 2009.05.23 16:30

by lbr on 2009.05.23 16:30 (#68746)
Attached to: Prototype OO and Multiple Inheritance?
Ah, that makes "sense" (and it was that gotcha that had gotten me). Sigh. JINP.
Read More 7 comments
Comments: 7
+ -

  Comment: Self and NewtonScript (Score 1) on 2009.05.22 12:59

by lbr on 2009.05.22 12:59 (#68742)
Attached to: Prototype OO and Multiple Inheritance?

If memory serves, Self had a system to make any slot a parent-slot - by convention "parent*" was the object cloned from, but any slot could be a parent-slot by adding a * to the name. How dispatch was eventually (mis-)handled, I have no recollection...

NewtonScript was based on Self, but extended the convention to always have two parent-slots for gui-elements (business-object + gui-object), but not any more, as I recall.

And speaking of prototype-based language, why would anyone add first-order functions to a language and not make them closures. Yes, javascript, I'm looking at you.

ObUsePerlSucks: adding my own paragraphs? really?

Read More 7 comments
Comments: 7