yes methods are not global - thats why i said the "this"
pointer is passed to them - the fact that they are not
global does not mean multiple identical code blocks exist
in memory..the reason you cannot access them, is beacuse
they themselves access data that is local per instance
data...it make no sense to have a function pointer to a
member function..unless a mechanism exists for linking it
to a specific intance..and blitz doesnt seem to have any
machanisms for this..
Think of member functions as being pointers to functions,
and that function existing in one place in memory + accepting a "this" parameter. Only when an object is
created is its pointer for this method linked to the method code...without an object, the method has no meaning.
If i create an intance + try to grab the method for use as
a function pointer..im in effect grabbing code blocks
address...now even though i accessed this block through
an instance..the code block itself know nothing about the
instance it was linked to...
erg..this isnt fun to explain..time for sleepings
pointer is passed to them - the fact that they are not
global does not mean multiple identical code blocks exist
in memory..the reason you cannot access them, is beacuse
they themselves access data that is local per instance
data...it make no sense to have a function pointer to a
member function..unless a mechanism exists for linking it
to a specific intance..and blitz doesnt seem to have any
machanisms for this..
Think of member functions as being pointers to functions,
and that function existing in one place in memory + accepting a "this" parameter. Only when an object is
created is its pointer for this method linked to the method code...without an object, the method has no meaning.
If i create an intance + try to grab the method for use as
a function pointer..im in effect grabbing code blocks
address...now even though i accessed this block through
an instance..the code block itself know nothing about the
instance it was linked to...
erg..this isnt fun to explain..time for sleepings