[comp.sys.intel] C++ for 286?

bradley@uiucdcsm.cs.uiuc.edu (11/06/87)

We're doing some OS development on a couple of 286-based machines and
are interested in using C++.  The type of work we're doing, though, requires
that we mix near and far pointers.  Unfortunately, the "near" and "far" 
keywords are not standard C and cfront (correctly) flags them as errors.

Does anybody have any suggestions on how we could get around this problem?
Ideally the near and far pointer definitions would be hidden in a couple
of classes, but the problem of how to define those classes still remains.
We have sources for C++ and could, if neccessary, dig into them.


David Bradley

bradley@a.cs.uiuc.edu
Department of Computer Science
University of Illinois at Urbana-Champaign