A bit less typing for NCI calls:

1) declare the pmc type as NCI

  .local NCI the_sub
   # get it from somewhere e.g.:
   # the_sub = global "ncurses::initscr"

2) just call it:

   r = the_sub(args)

Works only for named subs of course.

This saves a savetop/restoretop pair and creating a return continuation, because a plain "invoke" is emitted for the function call.

t/pmc/nci.t has an example too

Have fun,
leo


Reply via email to