IPB

> Constant expressions
Чат
Форум
Загрузка...
 

Language:
Русский
English

   Constant expressions


A constant expression is an expression that can be evaluated by the compiler without actually executing the program.

Because the compiler must be able to completely evaluate a constant expression at compile time, these constructs are not allowed in constant expressions:

  - references to variables and typed constants (except in
    constant address expressions)
  - the @ operator (except in constant address expressions)
  - function calls (except the following)

These standard functions can be used in constant expressions:

   Abs        Chr
   Hi         Length
   Lo         Odd
   Ord        Pred
   Ptr        Round
   SizeOf     Succ
   Swap       Trunc

 
 К началу страницы 
 

Код для вставки: :: :: :: ГОСТ ::
Поделиться: //
 



-
Хостинг предоставлен компанией "Веб Сервис Центр" при поддержке компании "ДокЛаб"