I've checked in intial support for anonymous subroutines.

  .sub foo @ANON

creates an anonymous subroutine. It's available with the normal call syntax:

   x = foo(y)

in the same module[1], as this syntax translates roughly to:

   set_p_pc P0, foo
   invoke

where "foo" is a visible clue for the index in the constant table, where the Sub PMC is located.

But:

   $I0 = global "foo"

fails and throws an exception.

Feedback welcome, especially WRT some defaults for code created via compreg/compile,

leo

[1] in the sense: everything that got compiled in one piece.



Reply via email to