forum.gifForum - General - Topic #134

 

Forum - Forum
General - General


active  Topic # 134  Cook top

2010.07.11 3:10 PM
by PPA

Porting to 64 bits PICs is a piece of cake...

Administrator
216 messages

Join Date 2008.12.21

Location: France, IDF


Hi,

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

Write to PPA   Web site PPA Post an answer  Top
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
  Web site funlw65 Post an answer  Top
active topic active   closed topic closed   Sticky Sticky   New New message   -   Correct Correct message   Close Close topic   Make sticky Make sticky
[]
Forum Topic  Forum 




Sentence to think about :     
^ Top ^