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

Add support for __PACKAGE__, __SUB__, __METHOD__ and __CLASS__ #110

Open
stevan opened this issue May 12, 2013 · 3 comments
Open

Add support for __PACKAGE__, __SUB__, __METHOD__ and __CLASS__ #110

stevan opened this issue May 12, 2013 · 3 comments

Comments

@stevan
Copy link
Member

stevan commented May 12, 2013

These should all return the names of the current package, subroutine, method or class. The $? prefixed variables will be the actual runtime objects.

@amiri
Copy link

amiri commented Jul 8, 2013

I would like to work on a piece of this. For PACKAGE, for instance, can someone give me a hint which class to look at? Would that go in src/main/scala/org/moe/runtime/MoeRuntime.scala?

@stevan
Copy link
Member Author

stevan commented Jul 8, 2013

@amiri these values would (for the most part) be just aliases to some of the values in MoeEnvironment. The simplest way to implement them would be to make them subroutines in the CORE package, which should work fine since subroutines do not require parens.

@amiri
Copy link

amiri commented Jul 8, 2013

Thanks, Stevan.

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