more useful options | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Say I have an object, $heap. And say I want to store some really whopping huge strings in this heap. But $heap was not written to know about aliases and I don't want to add the overhead of putting references into the heap and telling it to use a dereferencing comparison function. Is there much chance that I could use:
to acheive a heap of aliases? My understanding of your description says "no". Would it make sense to be able to copy an opcode tree and transform the copy like:
(noting that routines called by $heapPush would still remain unaffected, perhaps unfortunately) How would you go about retrofitting a module to support storing aliases instead of copies? On a related note, compare these two bits of code:
Do these cases work?
I expect I could work that out for myself but I don't want to expend the effort and I thought you might appreciate the opportunity. (: BTW, smashing great idea for a module. - tye In reply to Re: RFC: Is there more to alias? (cases)
by tye
|
|