[Oberon] objects and jewels
fp at vonck.nl
Mon Feb 18 22:30:44 CET 2013
I try to "reverse engineer" the arduino language in Oberon07.
In arduino speak you create an servo object like this:
Servo myservo; // create servo object to control a servo
myservo.attach(9); // attaches the servo on pin 9 to the servo object
In oberon(07) this would become something like:
VAR myservo : SERVO.servo;
I remember reading an argument of Wirth against object orientation. However
the object way, "myservo.atttach(9)" seems more elegant than the modular
way. Did I overlook something?
More information about the Oberon