Some news about what I'm cooking up those times...
Well, PMP is not aimed to be object oriented, but some interesting features had been introduced a while ago in Delphi: records with methods. Currently I'm working on introducing this in PMP. I may call it "dynamic records". They will not be real objects (that is: no inheritance nor constructors and other object's stuff), but an easier and simple way to manipulate data without excessive parameter passing.
Something like this:
Code :
type tMyRec = record X, Y : integer; function Product : integer; end; ... function tMyRec.Product : integer; begin Result := X * Y; end;
Feel free to comment...
PMP team leader
Answer n° 1 -------- 2010.07.12 04:08 AM by funlw65
visitor
Join Date 2009.12.20
Location: Romania
He he, just like Oberon. "Inheritance" and "constructors" - never liked the OOP kitchen (brothers, cousins, relatives, all with private and shared aspects of their life :P ). I used objects as bricks rater than building the brick.
It will be a nice addition to the language if is possible.
Vasi
topic active
topic closed
Sticky
New message -
Correct message
Close topic
Make sticky
Sentence to think about : Slow and methodical testing like this will eventually get you to a point where you will either be able to spot the bug, or go quietly insane. Maybe both. Persistence of Vision 2.1 software documentation.