right... 'cause they're 2 different things
except i'm pointing to a class that I'm refrencing it to. so I'm calling it a reference not because it is a c++ reference, but because in the use of it,...
Type: Posts; User: scorche
right... 'cause they're 2 different things
except i'm pointing to a class that I'm refrencing it to. so I'm calling it a reference not because it is a c++ reference, but because in the use of it,...
now I get an error here :
myVector[myClass.size-1]._reference_tomyClass = & myVector[myClass.size];
I think I did it right ... but maybe I missed something
***** EDIT
I guess that's why I get an error when I'm creating the class
"So in essence you did it correctly... So what is the problem?"
I don't know... it gave me an error :)
but I think it's ok now, must have done something silly...
now I'm getting this error
i switched to
class myClass
{
myClass& reference;
}
sorry, I've spent the last 2 years sonverting c++ practices to actionscript, and now I'm doing it the other way round...
thanks, I'll give it a go
essentialy I want to do this
class myClass{
myClass *pointer;
}
wouldn't that be pointing to itself then?
I want to point to the same type but a different instance
Im just getting back into C and Im realizing how much I've forgotten (or didn't know)
anyhow I'm trying to do some OOP. And I've got a class, where I want to define a pointer to the same class....