Interesting Research Paper on Constructors in OO Languages

eles eles at eles.com
Wed Jul 17 15:00:24 PDT 2013


On Wednesday, 17 July 2013 at 21:59:14 UTC, eles wrote:
> On Wednesday, 17 July 2013 at 21:42:16 UTC, H. S. Teoh wrote:
>> On Wed, Jul 17, 2013 at 11:19:21PM +0200, w0rp wrote:
>
> This is how it is done in Ecere SDK and the eC language:

Example:

import"ecere"
classForm1 : Window
{
text = "Form1";
background = activeBorder;
borderStyle = sizable;
hasMaximize = true;
hasMinimize = true;
hasClose = true;
clientSize = { 400, 300 };
}
Form1 form1 {};

Basically, you assign needed fields first, then call an unique 
constructor on tthat skeleton.


More information about the Digitalmars-d mailing list