>From the help on type (topic: Type Identity),

Type identity is almost straightforward. When one type identifier is
declared using another type identifier, without qualification, they denote
the same type. Thus, given the declarations

type

  T1 = Integer;
  T2 = T1;
  T3 = Integer;
  T4 = T2;

T1, T2, T3, T4, and Integer all denote the same type. To create distinct
types, repeat the word type in the declaration. For example,

type TMyInteger = type Integer;

creates a new type called TMyInteger which is not identical to Integer.

Cheers,
Carl

-----Original Message-----
From: Leigh Wanstead [mailto:[EMAIL PROTECTED]]
Sent: Friday, 20 October 2000 12:20 PM
To: Multiple recipients of list delphi
Subject: [DUG]: Can anyone tell me what is the following code meaning?
(By the way, that is not important)


Hello everyone,

Can anyone tell me what is the following code meaning? By the way, it is not
important to me, I just read the code in 3rd party and I am just curious.

type
  TWhatever = type string;

Is that same as this one without word type?
type
  TWhatever = string;

Thanks in advance.

Best Regards
Leigh





---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to