keyword overloading

kaidranzer (35)
can i overload keywords in c++ to make them perform different operations than the regular ones that they perform like

1
2
3
4
class ABC
{
//some code
};


here can i make class perform a different function
jsmith (5804)
No, you can only override (most) operators.
kaidranzer (35)
thanks for the reply but i already know that i just want to know is there any "illegal" way of doing it
Bazzy (6275)
you can modify the keyword using preprocessor definitions:
eg:
1
2
3
4
5
6
#define class int
#define ABC ABC()
class ABC
{
//some code
};
Should make your class a function
kaidranzer (35)
yeah it works out great thanks,man this thing has great capabilities
Topic archived. No new replies allowed.