Proposal: user defined attributes

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Tue Mar 20 09:17:41 PDT 2012


On 3/20/12 11:09 AM, Steven Schveighoffer wrote:
> On Tue, 20 Mar 2012 11:17:02 -0400, Andrei Alexandrescu
> <SeeWebsiteForEmail at erdani.org> wrote:
>
>> Perhaps we should add a field of type Variant[string].
>
> 1. Variant is not (and shouldn't be IMO) part of druntime.
> 2. This is *static* data that should be available at compile time. D's
> runtime wasting cycles filling in static data (including lots of heap
> allocations) seems like a big enough detriment that compiler help is
> warranted.

Forgot to mention - I snipped these points because I agree with them.

Andrei



More information about the Digitalmars-d mailing list