Source for the previous entry

posted in Jemgine
Published September 21, 2011
Advertisement
I fixed those design flaws I talked about in https://www.gamedev.net/blog/342/entry-2250653-deyjascript-6-member-variables-and-design-flaws/ so here is the source. There isn't actually anything to say about it, as it doesn't do anything it didn't already do. Except string literals.

Some changes
-Functions now get their own chunk of bytecode
-Declaration nodes no longer double as scopes; they have scopes.

Some problems
-types can only exist in the global scope, or the new instruction can't find them. That's not a problem now, but if I try to support inner classes it will be a problem.

Next on the list, what I just said, and constructors.
0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement