Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion NCI sub call syntax in PIR
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Leopold Toetsch  
View profile  
 More options May 6 2004, 3:12 am
Newsgroups: perl.perl6.internals
From: l...@toetsch.at (Leopold Toetsch)
Date: Thu, 06 May 2004 09:12:24 +0200
Local: Thurs, May 6 2004 3:12 am
Subject: [CVS ci] NCI sub call syntax in PIR
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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.