On 25/10/2010, at 2:57 PM, john skaller wrote:
> 
> 
> val h = f . g;
> println$ h 1;
> 
> Here the composition isn't in an application, so the reduction,
> which is run *before* inlining, isn't applied. After inlining,
> there is new code in "mkcls.ml" to make a closure:
> 
> fun h(x:int)=> f(g(x));
> 
> and replaces f.g with h, eliminating the remaining compositions.
> 
> Right?
> 
> Wrong. :) 

Well, this code now works due to making the wrapper *before*
inlining.. but now I am puzzled because he wrapper isn't eliminated.

That's a val there not a var.. 

--
john skaller
skal...@users.sourceforge.net





------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to