In article <9mDSj.76$Vd7.68@[EMAIL PROTECTED]
>,
Duke Normandin <dukeofperl@[EMAIL PROTECTED]
> wrote:
> ...
>Now I see how easily "****d References" could quickly produce spaghetti
>code. But why use them at all? Is there a _speed_ advantage? Something
>else?
Used properly I find theres a readability advantage and reduced chance
of a typo. e.g.
SET
VehicleID=^CustomerCars(Country,State,City,Street,OtherSubscript,"VIN")
SET MilesPerGallon=^("MPG")
SET SomethingElse=^("Whatever")
-or-
SET ^("Count")=^Something(Here,There,Anywhere,"Count")+1
The danger in using ****d references comes from assuming that the
****d indicator wont change when making subroutine or function
calls. It might work fine when you write and test it but break at some
point in the future if/when the subroutine is changed.
--
-- Rod --
rodd(at)polylogics(dot)com


|