
27 Sep
2006
27 Sep
'06
4:08 p.m.
Hello, I compiled the following program using yhc:
main = print (calc 3) calc x = munge x 6 munge x y = x
The bytecode for calc starts with: NEED_HEAP_1 PUSH_CONST_0 PUSH_CONST_1 PUSH_ZAP_1 Couldn't this be simplified to: NEED_HEAP_1 PUSH_CONST_1 PUSH_CONST_0 Thanks. -- Kartik Vaddadi. Home: www.cse.iitb.ac.in/~kart Blogs: kartik-log.blogspot.com, kartik-rlog.blogspot.com Alternate mail ID: kartik.vad@gmail.com "50% Reservation, 100% Politics" - Protest the Indian government's decision to increase reservation in private educational institutions (yfemumbai.blogspot.com)