You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Need a way to specify the CIL .entrypoint for a program
For ghul this is conventionally an instance of the Main class created via a parameterless init() constructor. However the code generator would need to recognise this pattern, generate a hidden static method for the CIL .entrypoint and then instantiate the ghul Main class from there.
The easiest solution is probably just to add a pragma (e.g. @entrypoint())that generates the .entrypoint CIL directive, and issue an error if its not attached to the first statement of a static method or global function.
The text was updated successfully, but these errors were encountered:
Need a way to specify the CIL
.entrypoint
for a programFor ghul this is conventionally an instance of the
Main
class created via a parameterlessinit()
constructor. However the code generator would need to recognise this pattern, generate a hidden static method for the CIL.entrypoint
and then instantiate the ghulMain
class from there.The easiest solution is probably just to add a pragma (e.g.
@entrypoint()
)that generates the.entrypoint
CIL directive, and issue an error if its not attached to the first statement of a static method or global function.The text was updated successfully, but these errors were encountered: