Bob Ippolito schrieb:
> On 10/27/06, percious <[EMAIL PROTECTED]> wrote:
>> Sorry.  I probably posted this too early.  I got it figured out.  You
>> need to send CallLater a function pointer, not func()
> 
> JavaScript doesn't have macros, so a literal function call is *never*
> the right thing to do if the computation should be deferred in some
> way.
> 
> I find it interesting that MANY people expect that magically
> callLater(0.5, foo()) should perform "foo()" after 0.5 seconds, even
> though that this behavior doesn't happen in ANY other common language
> or framework that I've seen.

Lack of functional programming courses I'd say :) And the fact that 
nowadays languages like JAVA don't have the concept of a function 
pointer/reference. So for some reason, people don't see the () as an 
actual operator.

Diez

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to