On Oct 31, 2017, at 10:32 PM, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> 
wrote:

> but that's not how references work.
> 
> for example, imagine a method that does this:
> 
> // myMethod
> C_OBJECT($0)
> $0:=[myTable]myField
> 
> it is possible to do something like this:
> 
> myMethod.prop:="abc"
> 
> there is literally no way of knowing that an object is a field, just by 
> parsing the code.

4D doesn't have tell that the object is a field just by parsing the code. When 
doing the assignment, the reference must be followed to the actual object. 
There’s no reason the object internals can’t track whether an object is a 
sub-object of a field, and mark the field dirty when the object is changed. 

Jim Crate

**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to