#138604 - Zenix - Sun Aug 26, 2007 1:51 pm
Hey all,
I'm new to DS development, so go easy.
A simple question, is it possible to use inheritance with the DS (libnds)?
I tried the following code,
I'm sure this is valid C++ (it's late, so I might be mistaken), but it results in the following error,
Any help with this would be greatly appreciated.
I'm new to DS development, so go easy.
A simple question, is it possible to use inheritance with the DS (libnds)?
I tried the following code,
Code: |
class foo
{ public: int i; }; class bar : foo { }; int main( void ) { bar *a = new bar; a->i = 3; delete a; return 0; } |
I'm sure this is valid C++ (it's late, so I might be mistaken), but it results in the following error,
Code: |
f:/Prog/CPP/ds/DrunkenYarr/DrunkenYarr/arm9/source/main.cpp: In function 'int main()':
f:/Prog/CPP/ds/DrunkenYarr/DrunkenYarr/arm9/source/main.cpp:9: error: 'int foo::i' is inaccessible f:/Prog/CPP/ds/DrunkenYarr/DrunkenYarr/arm9/source/main.cpp:20: error: within this context |
Any help with this would be greatly appreciated.