std.data.json formal review

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Tue Aug 18 06:46:42 PDT 2015


On 8/18/15 5:10 AM, "Marc =?UTF-8?B?U2Now7x0eiI=?= <schuetzm at gmx.net>" 
wrote:
> On Monday, 17 August 2015 at 22:34:36 UTC, Andrei Alexandrescu wrote:
>> On 8/17/15 2:51 PM, deadalnix wrote:
>>>  From the compiler perspective, the tag is much nicer. Compiler can use
>>> jump table for instance.
>>
>> The pointer is a more direct conduit to a jump table.
>
> Not really, because it most likely doesn't point to where you need it,
> but to a `TypeInfo` struct instead

No, in std.variant it points to a dispatcher function. -- Andrei


More information about the Digitalmars-d mailing list