digitalmars.D.internals - Does D spec require arbitrary memory access?
- Paulo Torrens (9/9) Mar 17 2017 According to the C language spec, casting from integer to
According to the C language spec, casting from integer to pointers is implementation defined. Though one would expect it to work, the spec does not require compilers to allow it. For example, for accessing VGA text video memory, one would write (in D): byte *video = cast(byte *)0xB8000; As a systems' programming language, existing D compilers surely do allow that. But does the spec actually require it, or simply allow it?
Mar 17 2017