enforce()?

Leandro Lucarella luca at llucax.com.ar
Mon Jun 21 06:30:48 PDT 2010


Andrei Alexandrescu, el 21 de junio a las 08:02 me escribiste:
> On 06/20/2010 11:08 PM, Leandro Lucarella wrote:
> >Walter Bright, el 20 de junio a las 19:32 me escribiste:
> >>Leandro Lucarella wrote:
> >>>Why will you assume I'm so dumb that I won't use your
> >>>interface correctly?
> >>
> >>Windows has had major legacy compatibility issues because critical
> >>third party applications misused the APIs.
> >>
> >>People *will* misuse your API, and you will get blamed for it. It's
> >>unfair, but that's how it works.
> >
> >Luckily I haven't used Windows for about 10 years now =)
> >
> >It's really a shame that D will take the stupidity route.
> >
> >PS: I don't know how windows work, but if calling the Windows API is
> >     like going into kernel mode, and you can mess other processes, it
> >     seems reasonable to do check every API call as if it were user
> >     input, but if you're confined to your process, is really stupid.
> 
> Why is it stupid?

Because you're adding unnecessary extra checks, just based on
(Windows?) programmer's stupidity.

-- 
Leandro Lucarella (AKA luca)                     http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------
JUGAR COMPULSIVAMENTE ES PERJUDICIAL PARA LA SALUD.
	-- Casino de Mar del Plata


More information about the Digitalmars-d mailing list