Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2007.07.08;
Скачать: CL | DM;

Вниз

type string   Найти похожие ветки 

 
REA   (2007-06-08 13:04) [0]

увидел тут конструкцию в исходниках:
type
 TRoot = type string;

это зачем так?


 
Думкин ©   (2007-06-08 13:08) [1]

Type Identity
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.


 
REA   (2007-06-08 13:12) [2]

Спасибо за информацию. Правда ни разу такого не приходилось делать, но возможно пригодится...


 
Юрий Зотов ©   (2007-06-08 13:57) [3]

> REA

При таком объявлении создается новый тип со своей собственной RTTI


 
clickmaker ©   (2007-06-08 15:24) [4]

аналог новояза? "типа строка" :)


 
Style ©   (2007-06-08 15:28) [5]

Мне больше такая конструкция нарвица :)))

#define TRUE FALSE //счастливой отладки сц..ки



Страницы: 1 вся ветка

Текущий архив: 2007.07.08;
Скачать: CL | DM;

Наверх




Память: 0.45 MB
Время: 0.038 c
15-1181023046
vajo
2007-06-05 09:57
2007.07.08
Excel 2003. Число прописью


2-1181717913
Dr H
2007-06-13 10:58
2007.07.08
TValueListEditor


15-1181121766
ERDe
2007-06-06 13:22
2007.07.08
1c:предприятие


2-1180960668
BFG9k
2007-06-04 16:37
2007.07.08
Найти application в сторонней программе


15-1181229979
oldman
2007-06-07 19:26
2007.07.08
Как отучить ребенка...





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский