#perl - Wed 28 Mar 2007 between 13:00 and 13:04



Caelumbennymack: yes, with UNIVERSAL::isa :)
jjorebennymack, you could check that the thing is of the appropriate reftype or that it has the appropriate overloading.
isa won't get you there.
Caelumwhy not?
mofinosomian, are you emo?
You must be.
somianOf course there's an upside: my personal productivity will improve, what with not spending so much time answering questions on #perl and all.
Caeluma blessed hash is a HASH, etc.
jjorepackage X;use overload '@{}' => sub { ... };
somianIs that a nick or slang, mofino?
Jmax-mofino, that's neither necessary nor humorous
mofinoJmax-, to you.
jjoreObjects of class X, whatever reftype they are can be array dereferenced.
Caelumoh
Jmax-well i'd be highly disappointed in someone who did
mofinoJmax-, and I'm sure they wouldn't really care about your disappointment
actionsomian scratches his head, but wastes little time worrying about it.
somianscratches his head, but wastes little time worrying about it.
Jmax-good.
jjoreAnyway, just having isa return true for 'HASH' doesn't even mean it can be hash dereferenced.
mofinoOH NOES! I HAVE FAILED JMAX!
somian, excellent
somian?
mofinosomian, wasting time over drivel is a waste of time.
somian++
q[ender]what a fucking kindergarden
somianCertainly.
RandalHmm. I'm having a hard time grokking your article
jjoreYou could have an object that was isa the *class* HASH but didn't have any way to be hash dereferenced.
Caelumthat would just be evil
jjoreCuz you know, perl is funny that way.
mofinoWhat?! This is no kinder party!
Randalhowever, I now connect that you're the same person who posted something similar about six(?) months ago on monks?
somianOTOH, turning a blind eye to stuff that really matters is hypocrisy or lack of personal integrity
mofinosomian, really matter?
q[ender]what a moral crusader...
Randalintegrity is important.
cfeddestream of consciousness. Or in my case more of a puddle.
jjoreAnyway, isa() is one of those "kinda, sorta, mostly" answers that will break on legitimate code.
mofinosomian, I think there are bigger issues to tackle...
Randalthat's why I don't aim to be liked here. just aim to make a difference.

Page: 4 11 18 25 32 39 46 53 60 67 74 81 88 95 102 109 116 123 

IrcArchive