<HTML><HEAD>
<META content="text/html; charset=ISO-8859-1" http-equiv=Content-Type></HEAD>
<BODY dir=ltr bgColor=#ffffff text=#000000>
<DIV dir=ltr>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial'; COLOR: #000000">
<DIV>In general, records and classes are inherently the same thing (and in C++
are indeed practically interchangeable). The only real difference in Delphi/FPC
is that records are instantiated in the stack, the objects in the heap, and the
artificial restriction on record inheritance.</DIV>
<DIV>Now adding the option classes/objects to be instantiated in stack is a
risky one, however having record hierarchies poses very little risk.</DIV>
<DIV> </DIV>
<DIV>With best regards,<BR>Boian
Mitov<BR><BR>-------------------------------------------------------<BR>Mitov
Software<BR>www.mitov.com<BR>-------------------------------------------------------</DIV>
<DIV
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'>
<DIV style="FONT: 10pt tahoma">
<DIV> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=mschnell@lumino.de
href="mailto:mschnell@lumino.de">Michael Schnell</A> </DIV>
<DIV><B>Sent:</B> Monday, September 22, 2014 2:03 AM</DIV>
<DIV><B>To:</B> <A title=fpc-devel@lists.freepascal.org
href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</A>
</DIV>
<DIV><B>Subject:</B> Re: [fpc-devel] Suggestion: reference counted
objects</DIV></DIV></DIV>
<DIV> </DIV></DIV>
<DIV
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'>
<DIV class=moz-cite-prefix>On 09/20/2014 08:04 PM, Boian Mitov wrote:<BR></DIV>
<BLOCKQUOTE cite=mid:99334A73A8534CC1A46D69F5E44216A1@mpc1 type="cite">
<DIV dir=ltr>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial'; COLOR: #000000">
<DIV>This is actually a very good idea IMHO!</DIV>
<DIV>I would vote for it. Record inheritance is something I miss badly in
Delphi.</DIV>
<DIV> </DIV></DIV></DIV></BLOCKQUOTE>As said in a previous mail: why have
"Record" ad all, if you want things like inheritance (and "active" properties,
...) Maybe multiple brands of type if "class" would be more straight
forward (making "record" just an alias for portability) <BR><BR>-Michael<BR>
<P>
<HR>
_______________________________________________<BR>fpc-devel maillist
-
fpc-devel@lists.freepascal.org<BR>http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel<BR></DIV></DIV></DIV></BODY></HTML>