[OT] Swift removing minor features to piss me off

Shachar Shemesh via Digitalmars-d digitalmars-d at puremagic.com
Mon May 2 04:40:59 PDT 2016


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


More information about the Digitalmars-d mailing list