I can see where this could become a real problem
see below (fake) call chain where $object is modified repeatedly in nested, or
subsequent method calls
When $Object is finally used as a parameter list to Final_Method, and the
result/action(s) in FInal_Method are wrong due to bad parameter list/values/data
The following questions then become pertinent...
- so what is in $object
- what parameters does it contain?
- what data does it contain?
- where was that added?
- where was the screwup in the data/parameters?
$Object := Method1($Object)
$Final_Method($Object)
`Method 1
$Obejct:=$1
Add_something_to_Object($Object)
$0:=Method2($Object)
`Method 2
$Obejct:=$1
Add_something_to_Object($Object)
$0:=Method3($Object)
`Method 3
$Obejct:=$1
Add_something_to_Object($Object)
$0:=Method4($Object)
`Method 4
$Obejct:=$1
Add_something_to_Object($Object)
$0:=$Object
>
> Whereas,
> $The_Result_b:=The_Method($Obj_o)
> This gives no indication of what parameters have been sent - you have
> to search the code in this method to see if it has been added to the
> object for passing-onwards.
------------
Hell is other people
Jean-Paul Sartre
**********************************************************************
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:[email protected]
**********************************************************************