Archived

This topic is now archived and is closed to further replies.

Andrew Nguyen

The OOP test....

Recommended Posts

Guest Anonymous Poster
To test if someone should shut up, count how many useless troll posts they make in one day.

Share this post


Link to post
Share on other sites
im sorry, but if a langauge is truly OO, then it has no procedural stuff = no 'functions'.

for instance, to make a language fully oo, then all you would have to do is make functions liek classes, for example.
      
void MyOOFunc(int x, int y)
{
static interface:
{
public:
//can be accessed outside of function

enum Properties {x = Getx};
void Set(long, ...);
private:
//top-of-code private stuff

int Getx();
int m_x;
};
//code

}

void My2OOFunc()
{
MyOOFunc::Set(x, 5);
}


im actually working on a designing language somewhat like this to write expanding systems.


Edited by - evilcrap on January 1, 2002 11:07:38 PM

Share this post


Link to post
Share on other sites
honestly, a true oo system really has limited practical applications... its simply has too many features not commonly needed.

Share this post


Link to post
Share on other sites