It doesn’t seem useful to me… but please, prove me wrong.
Programmatically, I can’t think of one. I’m wondering if this could be
used somehow for digital class signatures.
As a side note, if you “reopen” this class, you can’t access
this variable again (arguably making it even less useful – bug
or feature?). Apparently it has died and gone to what Matz calls
"variable heaven" (search ruby-talk archives). Example:
a = 1
puts a # This works.
puts a # This doesn’t.
Perl has “variable suicide”. Wouldn’t this be “class suicide”?
Thanks for bringing up this little issue.
Other comments, anyone? Matz, Dave, ts?
I’m not on their level, but I’ll chime in anyway.
From: Hal E. Fulton email@example.com