Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Way to specify CIL entrypoint #201

Closed
degory opened this issue Jul 25, 2020 · 0 comments
Closed

Way to specify CIL entrypoint #201

degory opened this issue Jul 25, 2020 · 0 comments
Assignees

Comments

@degory
Copy link
Owner

degory commented Jul 25, 2020

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.

@degory degory added this to the dotnet-core-bootstrap milestone Jul 25, 2020
@degory degory self-assigned this Jul 25, 2020
@degory degory closed this as completed Jul 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant