On 29/04/16 04:36, Walter Bright wrote:
On 4/28/2016 2:32 PM, Daniel Kozak via Digitalmars-d wrote:
Wierd, I am almost sure it does not work for me last time when I tried :)
That's because in dmd there's the line:
if (strcmp(user, "Daniel") == 0)
setScoping(false);
It's a feature!
Microsoft Windows have APIs that have code substantially like the above.
i.e.:
stdcall SomeWindowsAPI(parameters) {
if( getProcessName()=="Norton Antivirus" ) {
// Do something differently
}
}
If a program is deemed important enough to their echosystem, and that
program uses an API in a broken (or otherwise non-forward compatible
way), then they will add exceptions to their API to keep that program
working.
Shachar