emit code into existing instance

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Robert Lario

    #1

    emit code into existing instance

    I understand how to create a new class in memory, but I want to "Instrument
    " an exisiting object. for example when an object is passed to a function
    called foo, from within foo I want to add a new bool attribute to that
    instance/type (if it has not already been added).

    anybody have any ideas on how to solve this?



Working...