develooper Front page | perl.perl5.porters | Postings from December 2013

Re: An article on writing Perl extensions without XS

Thread Previous | Thread Next
From:
Christian Walde
Date:
December 17, 2013 11:54
Subject:
Re: An article on writing Perl extensions without XS
Message ID:
op.w78jcdtzydyjqt@digitizedsqueak
On Tue, 17 Dec 2013 12:43:00 +0100, Zefram <zefram@fysh.org> wrote:

> The only part that's really tradition is the specific names of the
> variables.  As I said, you wouldn't naturally reinvent the same names
> if you were approaching the problem afresh.  (A lot of people would
> come up with "items" and "sp", or at least names close to those, but
> "ax" is utterly arbitrary.)  Outside the context of the code generated
> by XS, we use the same names for these variables just because they're
> the established names.

That's largely what i was trying to say and i'm sorry if i did not express  
that clearly. Thanks a lot for expanding on what you were thinking. :)

I do think that, instead of forcing people to do `sp -= items;` just to be  
able to iterate forwards through arguments with ++, someone would probably  
have instead just made a macro that points to the start of the arguments  
in the stack. However that is a *minor* point that got conflated into the  
names things and made me express myself inaccurately.

-- 
With regards,
Christian Walde

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About