On Mon, Dec 7, 2009 at 9:02 AM, Patrick R. Michaud <[email protected]> wrote: > On Mon, Dec 07, 2009 at 07:39:13AM -0500, Will Coleda wrote: >> For a non-EH, you can do something like: >> .sub 'string_options' :anon :immediate >> .local pmc opts >> opts = split ' ', 'bytelength compare equal first index is last >> length map match range repeat replace reverse tolower toupper totitle >> trim trimleft trimright wordend wordstart' >> >> .return(opts) >> .end > > The other limitation is that :immediate only helps when creating > constants of core PMC types. If you have a dynpmc or some other > structure (e.g., for HLL constants), or if the act of creating the > constant has other side-effects, then :immediate doesn't help.
I believe this issue of creating non-core types can be addressed by creating and hll_mapping your types in a preceding :immediate, but am not in a position to verify it now. > Pm > -- Will "Coke" Coleda _______________________________________________ http://lists.parrot.org/mailman/listinfo/parrot-dev
