On Tuesday 22 April 2008 10:05:57 Allison Randal wrote: > We've been kicking around the idea of removing new_from_string for a > while, but the pushback is always that it's useful to be able to create > a new PMC with some initialization data, without first creating a PMC > initializer that has to be garbage collected. So, instead of removing it > entirely, make it a standard initialization option, passing a string > argument instead of a PMC argument.
A C string or a STRING string? (The latter are STRING initializers which have to be garbage collected.) > Note, this will require changes to the "new" opcode, and to the > low-level initialization functions ("pmc_new", etc). But, at least it'll > be consistent, instead of a lone crack-headed different way of > instantiating PMCs. Crack removal ++; Is one of the changes to the new opcode adding a _s variant? Is one of the changes to pmc_new adding an optional parameter, or a new pmc_new_some_suffix version? -- c