Archived

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

The OOP test....

This topic is 5859 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

To test if a language is FULLY OOP, try this: class { void { int { float { if { while { class}}}}}} Now, see if that works...

Share this post


Link to post
Share on other sites
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