Re: Object property inheritance - why does this this not work ?

2019-09-15 Thread Peter Jakobsson via 4D_Tech
That was a very inspiring post. > On 15 Sep 2019, at 21:44, Aparajita Fishman via 4D_Tech > <4d_tech@lists.4d.com> wrote: > >> ORDA looks really interesting too but I haven't played with it yet, but I'm >> looking forward to experimenting with it soon. > > It’s more than interesting, it’s

Re: Object property inheritance - why does this this not work ?

2019-09-15 Thread Aparajita Fishman via 4D_Tech
> ORDA looks really interesting too but I haven't played with it yet, but I'm > looking forward to experimenting with it soon. It’s more than interesting, it’s bringing 4D into the 21st century. It’s the way DB access has been on other platforms for a long time, and it's just way, way superior

Re: Object property inheritance - why does this this not work ?

2019-09-15 Thread Peter Jakobsson via 4D_Tech
> On 15 Sep 2019, at 14:32, Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Don't try to fit a square peg into a round hole just yet Fair enough, Jeff. I won’t, and your advice is of course wise re. “the real thing is coming”. But it’s still interesting to explore the potential

Re: Object property inheritance - why does this this not work ?

2019-09-15 Thread Jeffrey Kain via 4D_Tech
I think you should stop thinking about dot notation as object orientation. Concepts like classes and inheritance aren't supported yet, and saying $animal:=$dog isn't inheritance -- it's just assigning one object's reference to another and kind of backwards at that. Don't try to fit a square

Re: Object property inheritance - why does this this not work ?

2019-09-15 Thread Peter Jakobsson via 4D_Tech
Hi Narinder Thanks for posting your commentary. Very interesting. Regards Peter > On 15 Sep 2019, at 13:58, Narinder Chandi via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I think our coding style will need to undergo an evolution rather than > revolution

Re: Object property inheritance - why does this this not work ?

2019-09-15 Thread Narinder Chandi via 4D_Tech
D Tech Mailing List <4d_tech@lists.4d.com> Cc: Peter Jakobsson Subject: Re: Object property inheritance - why does this this not work ? Thanks Narinder. Doesn’t this imply we need to change our entire style and approach to coding ? Language data structures, forms, the lot ?

Re: Object property inheritance - why does this this not work ?

2019-09-15 Thread Peter Jakobsson via 4D_Tech
Thanks Narinder. Doesn’t this imply we need to change our entire style and approach to coding ? Language data structures, forms, the lot ? Have you found you needed to do this ? (At least in terms of new code and optimal approaches). Having attended the last couple of summits and various

Re: Object property inheritance - why does this this not work ?

2019-09-15 Thread Narinder Chandi via 4D_Tech
- From: 4D_Tech <4d_tech-boun...@lists.4d.com> on behalf of 4D Tech Mailing List <4d_tech@lists.4d.com> Reply-To: 4D Tech Mailing List <4d_tech@lists.4d.com> Date: Sunday, 15 September 2019 at 11:46 To: 4D Tech Mailing List <4d_tech@lists.4d.com> Cc: Peter Jakobsson Subjec

Re: Object property inheritance - why does this this not work ?

2019-09-15 Thread Peter Jakobsson via 4D_Tech
Hi Narinder So it does. I created a brand new structure and it now works. I did that example in a legacy upgraded structure so maybe there’s some compatibility setting that I needed to change to fully support the new object syntax. Many thanks for taking the time to check it and respond !

Re: Object property inheritance - why does this this not work ?

2019-09-15 Thread Narinder Chandi via 4D_Tech
mber 2019 at 11:12 To: 4D Tech Mailing List <4d_tech@lists.4d.com> Cc: Peter Jakobsson 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 opera

Object property inheritance - why does this this not work ?

2019-09-15 Thread Peter Jakobsson via 4D_Tech
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