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

Inner function should be pre-interpreted in all of call-scopes (v1.2) #2

Closed
jingwood opened this issue May 23, 2013 · 1 comment
Closed
Assignees

Comments

@jingwood
Copy link
Member

Curernt ReoScript does not pre-interpret the inner functions which defined inside another function scope. Function call before its definition currently is not available.

function outer() {
  inner();           // error: Function is not defined: inner

  function inner() {
    console.log('inner called');
  };
};

outer();

This issue is planned to be solved in next release.

@ghost ghost assigned jingwood May 23, 2013
@jingwood
Copy link
Member Author

This issue has been fixed. (v1.3)

jingwood added a commit that referenced this issue Jun 17, 2013
- New: Performance improving
- New: New error handling method (#3)
- New: Handle or throw syntax errors at pre-interpret-time
- New: Handle const values at pre-interpret-time
- New: Inner function can cache its outer call-scope (#1)
- New: Inner function can be pre-interpreted (call before define is
available) (#2)
- New: Max call-stack detection added
- New: Minus operator can be used to calculate elapsed milliseconds with
two date objects
- New: IDirectory interface is available to property access and
enumeration (#4)
- New: Information about functions and variables is available after
compiling
- Fixed: Function scope and call-scope has been fixed
- Fixed: Exception caused when array resizing has been fixed
- Changed: .NET IList interface can be accessed directly (DirectAccess
mode is unnecessary)
- Changed: Reform library namespaces
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