Class nomenclature

Simen kjaeraas simen.kjaras at gmail.com
Fri Jan 8 16:57:26 PST 2010


On Sat, 09 Jan 2010 01:24:56 +0100, Ali Çehreli <acehreli at yahoo.com> wrote:

> Is there an established nomenclature for D class objects and variables?
>
> - What do you call c0 and c1 below? "variable"? "reference"?
>
> - What do you call the actual object? "instance"? "object"?
>
> class C
> {}
>
> void main()
> {
>      auto c0 = new C;
>      auto c1 = c0;
> }
>
> Thank you,
> Ali

c0 and c1 are variables. They are of the type class references, or  
references to C.
The actual object is an instance of the class C, and is an object. (not to  
be confused with the object class)

-- 
Simen



More information about the Digitalmars-d mailing list