Hallo Michael,

Du schriebst am Tue, 19 Nov 2013 13:16:36 +0100:

> Of course you are right. Maybe inventing "constant objects" might be a 
> nice extension to Object pascal.

They've been just resently removed from Delphi. They were called "object"s,
and you _could_ indeed declare constant objects like that:

TYPE
  Sometype = OBJECT
               ...
             END,  { not really sure about the syntax here }
CONST
  Something: Sometype = (...);

> I understand this is to be able to remove the legacy "Objects" 
> (predecessor of "Class") types, by in fact a new construct "between" 
> record and class.

You're talking about the "new" Delphi "record" type with "methods"?
Well - it's not so new, it's just the old non-heap-resident object type by
another name. Nothing really new here.

> With that you would need neither record nor "Object"

Well, you could invent yet another name again, of course...

-- 
-- 
(Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung
nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem)
-----------------------------------------------------------
Mit freundlichen Grüßen, S. Schicktanz
-----------------------------------------------------------



------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to