diff -r 43e37759235e -r 51a74ef9ed63 Symbian3/SDK/Source/GUID-6C1E4B3D-0FBF-5CEA-9A30-B4C5CB4CAC3E.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-6C1E4B3D-0FBF-5CEA-9A30-B4C5CB4CAC3E.dita Wed Mar 31 11:11:55 2010 +0100 @@ -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