Calling a method [like a function pointer]

K nnoydb at excite.com
Sun Jun 13 12:57:12 EDT 2004



Interesting......

So, send (not in time) executes the handler immediately and awaits its completion returning the "return XXX" value in the result? WOW, I read the books and completely missed that if my understanding of what Scott Dar is saying.


Kevin


-==-=-=-=-=-=-==-=-=-=-=-=-=-=-==-=-=-=-=-=-
Disclaimer:

Any resemblance between the above views and those of my
employer, my terminal, or the view out my window are purely
coincidental. 
Any resemblance between the above and my own views is non-deterministic.

 The question of the existence of views in the absence of anyone to hold
them
is left as an exercise for the reader. The question of the existence of
the reader
 is left as an exercise for the second god coefficient. 
(A discussion of non-orthogonal, non-integral polytheism is beyond the
scope of this article.)



 --- On Sat 06/12, Dar Scott < dsc at swcp.com > wrote:
From: Dar Scott [mailto: dsc at swcp.com]
To: use-revolution at lists.runrev.com
Date: Sat, 12 Jun 2004 13:10:52 -0600
Subject: Re: Calling a method [like a function pointer]

<br>On Jun 12, 2004, at 12:38 PM, K wrote:<br><br>> Okay I have tried value() after 1000 or so calls function suddenly get <br>> cannot evaluate methods and variables that it previously executed (as <br>> stated in my posting reguarding value()).  Is there a way to invoke a <br>> function by name and retrieve it's return value other than value() <br>> since it has significant anomalies?  This is simular to calling a <br>> function pointer in C++ or CallByName() in Visal Basic.<br><br>No function pointer.  However, there are other alternatives.<br><br>The functions merge() & value() and commands 'do', 'call' & 'send' all <br>evaluate and might be useful.  There are ways to execute commands in <br>the first and functions in latter.  Besides using function names, you <br>can also create expressions and evaluate those in the appropriate <br>context.<br><br>You can return values from a 'send' (not in time) by using return in <br>the callee and looking at result() in the caller.<br><br>Dar Scott<br><br>_______________________________________________<br>use-revolution mailing list<br>use-revolution at lists.runrev.com<br>http://lists.runrev.com/mailman/listinfo/use-revolution<br>

_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!


More information about the use-livecode mailing list