OK to pass big data in 'the result'?

Phil Davis revdev at pdslabs.net
Thu Mar 15 19:59:57 EDT 2007


Is anyone aware of any drawbacks in using 'the result' as a container for 
passing, say, a bunch of records from one handler to another? Like this:


on processRecords
   getRecords
   put the result into tRecordList
   repeat for each line tLine in it
     -- your code here
   end repeat
end processRecords


on getRecords
   put the uBigList of stack "XYZ" into tList
   delete stack "XYZ" -- to remove it from memory
   return tList
end getRecords


Any drawbacks? Speed or memory or other issues?

I realize there are clearer, cleaner ways to do this... in a new dev (read 
"perfect") world at least. But I'm not in that world at the moment.

Thanks -
Phil Davis



More information about the use-livecode mailing list