Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Прочее";
Текущий архив: 2007.07.08;
Скачать: [xml.tar.bz2];

Вниз

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;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.048 c
2-1181595056
WhiteCat
2007-06-12 00:50
2007.07.08
Очистить TImage.Picture


15-1181070803
New Guy
2007-06-05 23:13
2007.07.08
Linux - Windows - build LAN


15-1181392665
Ломброзо
2007-06-09 16:37
2007.07.08
Помирает тачпад


1-1178612822
nali
2007-05-08 12:27
2007.07.08
Обмен значениями между потоками


15-1181023220
Rouse_
2007-06-05 10:00
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
Английский Французский Немецкий Итальянский Португальский Русский Испанский