What should these three code fragments print:

   newclass P1, "Foo"
   classname S1, P1
   print S1

----

   newclass P1, "Foo"
   find_type I0, "Foo"
   new P2, I0
   classname S2, P2
   print S2

----

   new P3, .PerlInt
   classname S3, P3
   print S3

----

 At the moment, we get:

 Foo
 Foo
 Segmentation fault

 Note that the second fragment only works because currently PCD_CLASS_NAME
 and POD_CLASS_NAME occupy the same slots in their respective enums; are
 we prepared to guarantee that this will always be the case?

 Simon

Reply via email to