Francois PERRAD wrote:

'new_from_string' is widely used by .const, for example :
    .const .String key_print = "print"

That's the one case I consider a valid use of 'new_from_string', actually creating a string constant during initialization. Other hackery has been piled on top of the feature, just because it was there.

or
    .const .Sub _create = 'create'
What becomes this kind of constructor ?

How about fixing the .const directive so it supports the full set of options in PMC initialization? (We need to change .const anyway, so it stops using type IDs.)

  .const _create = new "Sub", $P0

or

  .const _create = new "FixedIntegerArray", [ 1; 3; 5; 7; 9 ]

Allison

Reply via email to