Skip to content

inline functions #34

@ExpHP

Description

@ExpHP

inline functions have been planned from the beginning. Basically, ECL is the only language that provides a mechanism for letting one subroutine invoke other subroutines. Therefore, in any other language, the only way to make it possible for the user to factor out any part of a script into a function would be to somehow inline it at the callsite.

Here is where we stand on these:

  • Parsing of inline functions
  • Scoping and name resolution
  • Inlining implementations
    • Implementation for the stackless lowerer
      • Registers used inside should be considered used by the function itself.
    • Implementation for the stackful lowerer
  • inline int (pass by reference) parameters
  • const string (pass by compile-time literal) parameters

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions