Skip to content

Support for inline functions and constants #5

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

Closed
saylasr opened this issue Dec 28, 2017 · 1 comment
Closed

Support for inline functions and constants #5

saylasr opened this issue Dec 28, 2017 · 1 comment

Comments

@saylasr
Copy link

saylasr commented Dec 28, 2017

Is it possible to add support for inline functions and constants?

An example of code

const pos:i32 = 10;
store<i32>( pos + 10, 10 );

That should be optimized to

store<i32>( 20, 10 );
@dcodeIO
Copy link
Member

dcodeIO commented Dec 28, 2017

See: #6

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

2 participants