develooper Front page | perl.perl6.internals | Postings from July 2002

[perl #15574] [PATCH] RECALL renamed to AVOID

Thread Next
Tanton Gibbs
July 25, 2002 11:36
[perl #15574] [PATCH] RECALL renamed to AVOID
Message ID:
# New Ticket Created by  "Tanton Gibbs" 
# Please include the string:  [perl #15574]
# in the subject line of all future correspondence about this issue. 
# <URL: >

This patch implements the AGAIN pmc preprocessor command.  AGAIN should be
used after a PMC type change.  For example, the following function
illustrates AGAIN:

# in perlint.pmc
void set_string( PMC* string ) {
  CHANGE_TYPE( SELF, PerlString );

In this situation, AGAIN calls set_string on SELF's
vtable which now points to a perl string PMC type.  This
ensures that the same semantics are kept no matter what PMC type is used and
if any problems are found, they only have to be fixed in one place.

I also added comments to to explain what
the program was doing.  I added a sample grammar
at the top, etc..

Finally, I made some minor style modifications to perlint.pmc and


-- attachment  1 ------------------------------------------------------

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About