diff -r 89d6a7a84779 -r 25a17d01db0c Symbian3/PDK/Source/GUID-6C1E4B3D-0FBF-5CEA-9A30-B4C5CB4CAC3E.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/PDK/Source/GUID-6C1E4B3D-0FBF-5CEA-9A30-B4C5CB4CAC3E.dita Fri Jan 22 18:26:19 2010 +0000 @@ -0,0 +1,38 @@ + + + + + +Coding +literal descriptorsLiteral descriptors must be defined in their own C++ statement +and the resulting constant used wherever it is required. +

Literal descriptors cannot be embedded in expressions because they do +not create temporary objects.

+

Literal objects can be declared safely in header files:

+ +

Literals can be defined at file-scope, including in header files, in which +case they are visible to any code that follows. They can also be declared +local to the function which uses them. However, there are a couple of caveats +with defining them at function scope:

+ +

Thus, if the descriptor is short or used only in an inline function, it +is better to define it at file scope with a suitably distinct name.

+
\ No newline at end of file