G
Gerardo Santana Gómez Garrido
I have a class A written in C that contains a C structure. I have
defined the functions mark, alloc and free.
I have another class B, written in C, that derives from class A and
adds another piece of C data.
Should the class B define mark, alloc and free functions for both,
class A and class B, C structures?
Or sould the class B care for its own C structure only? Will Ruby's
marking, allocation and liberation mechanism call their respective
functions?
I got confused. Thanks in advance.
defined the functions mark, alloc and free.
I have another class B, written in C, that derives from class A and
adds another piece of C data.
Should the class B define mark, alloc and free functions for both,
class A and class B, C structures?
Or sould the class B care for its own C structure only? Will Ruby's
marking, allocation and liberation mechanism call their respective
functions?
I got confused. Thanks in advance.