POV-Ray : Newsgroups : povray.off-topic : Why is Haskell interesting? : Re: Why is Haskell interesting? Server Time
4 Sep 2024 15:19:46 EDT (-0400)
  Re: Why is Haskell interesting?  
From: Nicolas Alvarez
Date: 30 Mar 2010 21:24:56
Message: <4bb2a468@news.povray.org>
Darren New wrote:
>>> Bzzzt. You just don't know javascript very well. What object do you
>>> get when  foo or bar references "this"?
>> 
>> I have no idea. (And no obvious way of finding out...)
> 
> Hint: It's called "window".
> 
> function foo() {...}
> 
> is the same as
> 
> window["foo"] = Function(){...}

More precisely, a 'foo' property is added to the global object, which 
happens to be "window" when the JS interpreter is hosted in a web browser.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.