|There's more than one way to do things|
Re: Re: Autovivification with hash of hashesby pg (Canon)
|on Jan 26, 2003 at 05:25 UTC||Need Help??|
I am quite confused with your second piece of code. What does it try to demo? What is your expected result (to print out the "popped into existence" or not, I tested it, and it printed)?
Also I don't know whether you realize that you actually used the concept of symblic reference in your second demo.
I changed your second demo a little bit, and added comments to explain:
Yes, Aristotle is right, and I messed up with && and ||, Thanks for pointing out.
However this mistake does not reduce the value of this post, and the post as a whole is still correct, especially the discussion on symbolic reference.
I keep the mistake there (Remove the original mistake pointed out by other monks, would make other monk's reply funny, and sounds like irrelevant, and I don't do this ;-)
"And the latter is exactly what he's talking about protecting against by using ref."