Programming Language for Games, part 3

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Sat Nov 1 18:44:50 PDT 2014


On 11/1/2014 6:05 PM, "Ola Fosheim Grøstad" 
<ola.fosheim.grostad+dlang at gmail.com>" wrote:
> On Sunday, 2 November 2014 at 00:56:37 UTC, Ola Fosheim Grøstad wrote:
>> On Sunday, 2 November 2014 at 00:47:16 UTC, Walter Bright wrote:
>>> On 11/1/2014 4:04 PM, "Ola Fosheim Grøstad"
>>> <ola.fosheim.grostad+dlang at gmail.com>" wrote:
>>>> Anyway, I believe you can turn on bound checks with some C-compilers if you
>>>> want
>>>> it,
>>>
>>> Won't work, because C arrays decay to pointers whenever passed to a function,
>>> so you lose all hope of bounds checking except in the most trivial of cases.
>>
>> There are bounds-checking extensions to GCC.


I proposed a C extension, too.

    http://www.drdobbs.com/architecture-and-design/cs-biggest-mistake/228701625


More information about the Digitalmars-d mailing list