[Request for ABI Breakage]: Ambiguity between extern(Pascal) vs. Template Value Parameters.

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Mon May 18 06:51:16 PDT 2015


On 5/16/15 10:36 PM, Walter Bright wrote:
> On 5/16/2015 8:46 AM, Iain Buclaw via Digitalmars-d wrote:
>> On 16 May 2015 at 16:34, Daniel Murphy via Digitalmars-d
>> <digitalmars-d at puremagic.com> wrote:
>>> "Iain Buclaw"  wrote in message
>>> news:uzmzjndohsiaewkjmchu at forum.dlang.org...
>>>
>>>> Once use of extern(Pascal) should be exceedingly rare (I don't think I
>>>> ever followed ABI convention in GDC) I'd either request that
>>>> extern(Pascal)
>>>> be removed completely, or have it's mangled symbol be renamed to
>>>> something
>>>> other than a 'V' that does not clash with other types/identifiers.
>>>
>>>
>>> Why do we even have extern(Pascal) ?
>>
>> No idea.  D has never supported 16-bit systems.  Walter?
>>
>
> Windows API calls used it.

So would it make sense to use extern(Pascal) to only deal with Windows 
API calls? I can't see the OP's case html.dom.Node(none, none) being a 
Windows call.

I'd also call it something else besides extern(Pascal) to avoid confusion.

-Steve


More information about the Digitalmars-d mailing list