# New Ticket Created by  TOGoS 
# Please include the string:  [perl #30852]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org:80/rt3/Ticket/Display.html?id=30852 >


This patch changes the Undef PMC type to morph itself
to a Ref with the given value when set_pmc()d. In
order to do this it was also necessary to allow Ref
PMCs to point to NULL values, as there doesn't seem to
be any way to morph and give the new type's
initialization function a parameter at the same time.
Anyway, this makes it so that:

  find_global $P0, "foobar"
  setref $P0, $P1

does the correct thing in the case that the global
'foobar' does not already exist. Otherwise you and/or
your compiler must jump through dozens of tiny little
hoops in order to make such a thing work properly.


                
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

Attachment: ref+undef-2004.07.28.diff
Description: Binary data

Reply via email to