D-issapointed after using C# for a while.
Jerry via Digitalmars-d
digitalmars-d at puremagic.com
Fri Nov 11 19:30:58 PST 2016
On Saturday, 12 November 2016 at 01:02:05 UTC, Jonathan M Davis
wrote:
> On Friday, November 11, 2016 23:32:11 Jerry via Digitalmars-d
> wrote:
>> D doesn't have bitfields though? Phobos just has a template
>> that emulates them by mixing in functions that do the bit
>> shifting. Because it done through mixins it means you can't
>> attach attributes to the fields. Which I am in need of.
>> Haven't found a good workaround though.
>
> What attributes do you need that aren't there already? UDAs?
> Looking at the code, the full set of appropriate built-in
> attributes are on them already.
>
> - Jonathan M Davis
Yah I need to associate some extra information with the bitfields
using UDAs.
More information about the Digitalmars-d
mailing list