On Thursday, December 12, 2002, at 01:41 PM, Dave Whipp wrote:
I think if you do this, you're probably in a world of hurt. We'd have to assure that no object id's are *ever* reused -- so mem addresses are out, since the same address may be used for different things at different points in time. It would literally have to be a unique serialnum attached to every single object in the process' lifespan. And if it were to work correctly for persistent objs, it'd have to be unique even among all perl invocations. Eeew!I might want to write code such as:$remembered_id = $obj.id; ... [ time passes ] ... if $an_object.id == $remembered_id { ... }
Whatever's behind 'id' is probably a meaningless blob with only one use: to determine if two vars, $obj1 and $obj2, are in fact bound to the same thing. You can't (meaningfully) store them for use elsewhere.
Anything else seems to imply icky overhead, yes?
MikeL