On 2012-11-25, at 21:28, Igor Stasenko <[email protected]> wrote: > On 25 November 2012 23:11, Camillo Bruni <[email protected]> wrote: >> And don't forget to make the primitive declaration automatic, nobody can >> remember that cryptic string :) >> > once we'll have opal on board.. not before that. i don't want to hack > current compiler.
no need to hack the compiler - on the first call check if there is the primitive - if there is none, check if the method contains any other primitive - if not, add the primitive to the second line of the method sources - recompile the method with the same primitive - call that method again so you got a solution that works already now, I don't see what opal will add you here?
