Peter, I just tested your code exactly as-is and all the variables have the expected values. I used 17.2 on Mac. What version/platform did you test on? I've sent you a screenshot directly.
Regards, Narinder Chandi, ToolBox Systems Ltd. I am available for new consulting opportunities… http://4d.1045681.n5.nabble.com/ANN-4D-Developer-Available-td5765443.html -- -----Original Message----- From: 4D_Tech <[email protected]> on behalf of 4D Tech Mailing List <[email protected]> Reply-To: 4D Tech Mailing List <[email protected]> Date: Sunday, 15 September 2019 at 11:12 To: 4D Tech Mailing List <[email protected]> Cc: Peter Jakobsson <[email protected]> Subject: Object property inheritance - why does this this not work ? Hi Using the v17 dot notation I was unable to get one object to inherit another’s properties using the assignment operator. Also when I inspect $dog in the debugger after assigning the first property, it appears empty. Code is: C_OBJECT($animal;$dog;$cat) $dog:=New object $cat:=New object $dog.sound:="bark" $cat.sound:="meow" $animal:=$dog $getSound:=$animal.sound Running this in the debugger, $dog and $cat return “{}”, yet hovering over $dog.sound with the cursor does display the property value. $animal.sound returns undefined. Why does this not work ? Regards Peter ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] ********************************************************************** ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

