Jump to content
  • Advertisement

Archived

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

Andrew Nguyen

The OOP test....

This topic is 6013 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!