Skip to main content
gamedev.net
🔒 Locked

The OOP test....

Started by Andrew Nguyen 3 replies 450+ views
Original Post
Andrew Nguyen
Andrew Nguyen
To test if a language is FULLY OOP, try this: class { void { int { float { if { while { class}}}}}} Now, see if that works...
---START GEEK CODE BLOCK---GCS/M/S dpu s:+ a---- C++ UL(+) P(++) L+(+) E--- W++ N+ o K w(--) !O !M !V PS- PE+Y+ PGP+ t 5 X-- R tv+ b+ DI+ D G e* h! r-- !x ---END GEEK CODE BLOCK---
Shannon Barber
Shannon Barber
What?
The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara
EvilCrap
EvilCrap
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
EvilCrap
EvilCrap
honestly, a true oo system really has limited practical applications... its simply has too many features not commonly needed.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.