There are two (related) reasons why:
>>1: CIL uses the .entrypoint instruction to specify the entry point, not
    the function name.  
>>2: Consider an assembly that has multiple "Main" functions.  
Good points! But the entry point token is part of the CLI Header in the PE
file, and that's where the mono runtime looks for the entry point.
Also, even with the dynamic IL wrapper scheme I was talking about, the entry
point should be known! 

Thanks
Vivek

_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to