Mitchell N Charity wrote:

(3) A new reflector/reference class.

    void set_integer_native (INTVAL value) {
        PMC *object_reflected = SELF->cache.pmc_val;
	object_reflected->vtable->set_integer_native(...);
    }

Question ONE - What parts of the above code, if any, need to be
changed, simply and solely to address Dan's concern that we are being
"sloppy with variables and values".

You have now just one vtable method. If your reference should work on all types you have to implement all functions leading to enormous code duplication.

Please have a look at tt.c add() - no changes needed if the var-vtable fetches the variable for you.
So a reflector class would just implement the var.get_<type> and var.set_<type> functions - that's all.

Mitchell
leo

Reply via email to