Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Microsoft C 6.0 - <b>_self base expression naming itself as a base</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _self                   Base Expression Naming Itself as a Base

    A self-based expression is one that defines itself as a base; a self-
    based pointer can be both defined in and point to data in the same
    segment. For example, the pointers last, this, and next are both
    defined in and will point to data in the segment holding the following
    binarydata structure:

      struct binarydata
      {
         MYDATA _based((_segment)_self)*last;
         MYDATA _based((_segment)_self)*this;
         MYDATA _based((_segment)_self)*next;
      };

    In this structure, _self casts to a segment value. Note that
    declarations that use _self can only apply to pointers.

See Also: _based _segment _segname

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson