CodeView (cv.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
C Operators
 Order of Precedence                       Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     The C expression evaluator uses a subset of the most commonly used
     C operators. It also supports four CodeView-specific operators:
     the colon operator, used to separate the segment and offset
     portions of an address in <segment>:<offset> form; and the memory
     operators BY, WO, and DW, used to debug assembly source code.
     See: BY Operator
          WO Operator
          DW Operator
 
     With the C expression evaluator, the period (.) is used as a
     member-selection operator. It can also specify a local variable of
     a function, as in
 
          function.variable
 
     For the period operator to have an effect, <function> must be an
     active C function, and <variable> must be a local, nonregister
     variable within <function>.
 
     The type operator used in type casting works only on predefined C
     types. CodeView limits casts of pointer types to one level of
     indirection. For example, (char *)sym is accepted, but (char**)sym
     is not.
 
     When a C expression is used as an argument to a command that takes
     multiple arguments, the expression should not have any internal
     spaces. For example, count+6 is allowed, but count + 6 may be
     interpreted as three separate arguments. However, commands such as
     Display Expression (?) do permit spaces in expressions.
     See: Display Expression (?) Command-Window Command
                                    -♦-