S
Skybuck Flying
Hello,
Is it possible to declare routines in structures ?
Something like:
struct
{
int a, b, c
void Test;
} myStruct;
void myStruct.Test()
{
a = 5;
}
Only a,b,c would be stored in the structure.
This would allow to associate routines with structures a little bit better,
just syntaxtically.
Instead of writing:
myStruct_Test( myStruct );
I could for example write something like:
myStruct.Test();
Bye,
Skybuck.
Is it possible to declare routines in structures ?
Something like:
struct
{
int a, b, c
void Test;
} myStruct;
void myStruct.Test()
{
a = 5;
}
Only a,b,c would be stored in the structure.
This would allow to associate routines with structures a little bit better,
just syntaxtically.
Instead of writing:
myStruct_Test( myStruct );
I could for example write something like:
myStruct.Test();
Bye,
Skybuck.