RE: Autoglobal CVs without silence -- Summary

php.internals

Ford, Mike [LSS]

19 years ago
> -----Original Message----- > From: Sara Golemon [mailto:pollita@php.net] > Sent: 23 January 2007 19:02
> * - Sidenote: I refuse to call object behavior "reference by > default", > I've had too many people notice that it's not actually true
Hear, hear. My favourite terminology here (and I'm sure it was in the original description, when the change was first proposed, but got lost along the way) is to say that objects are always represented by their *handle*. Then variables contain the handle, and you can have copies of the handle and references to the handle which now behave exactly as expected. I've produced a couple of major lightbulb moments in people with this explanation, but it all stems from introducing the concept of an object's handle rather than saying objects are reference by default. Please consider promoting this terminolgy to general use -- it would make it so much easier to explain certain behaviours which currently have high WTF factors. </rant> Cheers! Mike ------------------------------------------------------------------------ ---------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, JG125, The Library, James Graham Building, Headingley Campus, Beckett Park, LEEDS, LS6 3QS, United Kingdom Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm

Hartmut Holzgraefe

19 years ago
Sara wrote:
> I've produced a couple of major lightbulb moments > in people with this explanation, but it all stems from > introducing the concept of an object's handle rather than > saying objects are reference by default.
i usually got these "aha!" events when using inodes and hard links as metaphers ...
-- Hartmut Holzgraefe, Senior Support Engineer . MySQL AB, www.mysql.com