Skip to content

support CPS transformations on nnkLambda and non-top-level procs #218

Open
@zevv

Description

Could we support this?

let foo = proc() {.cps:C.} =  
  echo "foo"  
foo()  

And if possible, even this?

proc foo() {.cps:C.} = 
                      
  proc bar() {.cps:C.} = 
    echo "bar"          
                           
  bar()        
                      
foo()

and this

proc foo() {.cps:C.} = 
  let bar = proc() {.cps:C.} =
    echo "bar"           
  bar()                 
foo()  

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions