C/C++ style Crashes?
Alexander Panek
a.panek at brainsware.org
Fri Jan 12 00:44:16 PST 2007
Sebastian Biallas wrote:
> Steve Horne wrote:
>> In a systems language, pointer arithmetic is a necessity. There are
>> things you simply cannot do without it - data structures that require
>> it, for instance.
>
> Can you give an example?
http://trac.brainsware.org/ocb/browser/trunk/src/arch/x86/idt.c
This is not D, yet, but it's pointer arithmetic. You need to do this,
because you have to split up the address and write lower and higher half
to two different places in the structure of the descriptor. (x86
backwards compatibility, yay!)
Best regards,
Alex
More information about the Digitalmars-d
mailing list