Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6388735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:18:57+00:00 2026-05-25T03:18:57+00:00

I can only understand what it does in before / after cases, what does

  • 0

I can only understand what it does in before/after cases,

what does it do for around?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T03:18:57+00:00Added an answer on May 25, 2026 at 3:18 am

    It seems to be doing something like Sub::Curry according to the implementation:

    static SV*
    my_build_around_code(pTHX_ SV* code_ref, AV* const around){
        I32 i;
        for(i = av_len(around); i >= 0; i--){
            CV* current;
            MAGIC* mg;
            SV* const sv = validate(*av_fetch(around, i, TRUE), T_CV);
            AV* const params       = newAV();
            AV* const placeholders = newAV();
    
            av_store(params, 0, newSVsv(sv));       /* base proc */
            av_store(params, 1, newSVsv(code_ref)); /* first argument (next proc) */
            av_store(params, 2, &PL_sv_undef);      /* placeholder hole */
    
            av_store(placeholders, 2, (SV*)PL_defgv); // *_
            SvREFCNT_inc_simple_void_NN(PL_defgv);
    
            current = newXS(NULL /* anonymous */, XS_Data__Util_curried, __FILE__);
            mg = sv_magicext((SV*)current, (SV*)params, PERL_MAGIC_ext, &curried_vtbl, (const char*)placeholders, HEf_SVKEY);
    
            SvREFCNT_dec(params);       /* because: refcnt++ in sv_magicext() */
            SvREFCNT_dec(placeholders); /* because: refcnt++ in sv_magicext() */
    
            CvXSUBANY(current).any_ptr = (void*)mg;
    
            code_ref = newRV_noinc((SV*)current);
            sv_2mortal(code_ref);
        }
        return newSVsv(code_ref);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As I understand, in Objective-C you can only put Objects into dictionaries. So if
Disclaimer: I'm not a c++ developer, I can only do basic things. (I understand
For reasons that only the developers can understand, Firefox will create and open .url
As I understand, before the Mango SDK update (7.1), you were only able to
JavaMail can only read one message at a time through IMAP . Threrefore, I
I can only assume this is a bug. The first assert passes while the
I can only think of a client-side solution using jQuery, but is it possible
I can only send string or numeric values,how to send an array?
I can only find asynchronous iPad/objective C HTTP examples. How do I do a
I can only see inline CSS and JS while viewing the source code of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.