Mail Archives: djgpp-workers/1997/10/31/07:49:49
On Fri, 31 Oct 1997, Fabrice ILPONSE wrote:
> Fabrice ILPONSE wrote:
> >
> > I am thinking about adding another kind of pointer in djgpp.
> > In djgpp, the pointers are flat but the lowest adress is limited by the
> > DS selector.
> > Why not use a "<type> flat *" in djgpp that would make easier to access
> > the < 640Ko memory for the video memory for example.
By all means: *no*! This would serve no useful purpose (you can always get
the same effect with the various existing methods), but re-introduce a
concept that's been haunting previous MS-DOS programmers porting their
programs to other systems for ages. Adding additional keywords like 'far'
to the core language is about as bad a design as you can possibly come up
with...
Coincidentally, your 'flat' is exactly what 16-bit DOS compilers used to
call 'far' (or maybe 'huge'). Re-ntroducing it would be like opening
pandora's box: users would immediately cry for 'flat' versions of malloc()
and friends, the string functions and whatnot.
HBB
- Raw text -