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

Вниз

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

 
savyhinst ©   (2008-07-16 17:43) [0]

Здраствуйте.
Подскажите пожалуйста, что значит конструкция

 TComponentName = type string;

,Что было найдено мною в Classes.pas
,и чем она отличается от

 TComponentName = string

Спасибо за внимание.


 
tesseract ©   (2008-07-16 17:51) [1]

Справочник даже открыть лень ?


 
savyhinst ©   (2008-07-16 17:52) [2]

Какой справочник? я впервые в жызни такое вижу


 
Palladin ©   (2008-07-16 18:04) [3]

который по F1 находится


 
Ega23 ©   (2008-07-16 18:24) [4]


> savyhinst ©   (16.07.08 17:43)



When you declare a type that is identical to an existing type, the compiler treats the new type identifier as an alias for the old one. Thus, given the declarations

type TValue = Real;
var
 X: Real;
 Y: TValue;

X and Y are of the same type; at runtime, there is no way to distinguish TValue from Real. This is usually of little consequence, but if your purpose in defining a new type is to utilize runtime type information--for example, to associate a property editor with properties of a particular type--the distinction between "different name" and "different type" becomes important. In this case, use the syntax

type newTypeName = type type

For example,

type TValue = type Real;

forces the compiler to create a new, distinct type called TValue.



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

Форум: "Начинающим";
Текущий архив: 2008.08.24;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.036 c
1-1197265455
Vladimir888
2007-12-10 08:44
2008.08.24
Получить значки дисководов


2-1216727543
aam
2008-07-22 15:52
2008.08.24
DDP файлы


2-1216372635
mahab
2008-07-18 13:17
2008.08.24
proxy


6-1192218336
prisoner849
2007-10-12 23:45
2008.08.24
IdHTTP и Post в Indy 10 (BDS 2006)


2-1216705735
Vlad Oshin
2008-07-22 09:48
2008.08.24
Смотрел DB.pas (BDS2006). Не понял.





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
Английский Французский Немецкий Итальянский Португальский Русский Испанский