Jon Jagger
jon@jaggersoft.com
Table of Contents 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 Notes DownloadECMA-334 C# Language Specificationpreviousnextprevious at this levelnext at this level 25 Unsafe codeprevious at this levelnext at this level 25.5 Pointers in expressionsprevious at this levelnext at this level 25.5.1 Pointer indirection Paragraph 11 A pointer-indirection-expression consists of an asterisk (*) followed by a unary-expression. pointer-indirection-expression : * unary-expression Paragraph 21 The unary * operator denotes pointer indirection and is used to obtain the variable to which a pointer points. Paragraph 31 The result of evaluating *P, where P is an expression of a pointer type T*, is a variable of type T. 2 It is a compile-time error to apply the unary * operator to an expression of type void* or to an expression that isn't of a pointer type. Paragraph 41 The effect of applying the unary * operator to a null pointer is implementation-defined. 2 In particular, there is no guarantee that this operation throws a System.NullReferenceException. Paragraph 51 If an invalid value has been assigned to the pointer, the behavior of the unary * operator is undefined. [Note: Among the invalid values for dereferencing a pointer by the unary * operator are an address inappropriately aligned for the type pointed to (see example in §25.4), and the address of a variable after the end of its lifetime. end note] Paragraph 61 For purposes of definite assignment analysis, a variable produced by evaluating an expression of the form *P is considered initially assigned (§12.3.1).
{ JSL }
Jagger Software Ltd
Company # 4070126
VAT # 762 5213 42
Valid HTML 4.01Valid CSS