Why do we need 3 Vector3 types?
#18
At runtime (UPE is a JIT engine), we query UPE for function foo. Foo is defined as a template, so we generate a specialized function for the arguments requested, and pass back a reference to that function. So Haskell doesn't need to know that it is a template, it just needs to know that it is calling a function called foo.

Hmm... that does make it a bit difficult since we cannot determine what the return type of f is, unless all Haskell types have a base type.
Reply
Thanks given by:


Messages In This Thread
Why do we need 3 Vector3 types? - by Shadowraix - 06-10-2015, 09:06 PM
RE: Why do we need 3 Vector3 types? - by xoft - 06-10-2015, 09:36 PM
RE: Why do we need 3 Vector3 types? - by xoft - 06-10-2015, 10:11 PM
RE: Why do we need 3 Vector3 types? - by xoft - 06-11-2015, 12:13 AM
RE: Why do we need 3 Vector3 types? - by SamJBarney - 06-16-2015, 05:08 AM



Users browsing this thread: 2 Guest(s)