Archived

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

Andrew Nguyen

The OOP test....

Recommended Posts

Guest Anonymous Poster   
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
EvilCrap    134
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