On Saturday, 12 November 2016 at 03:59:08 UTC, Jonathan M Davis
wrote:
It would definitely be possible to make it so that
std.bitmanip.bitfields could handle UDAs, but I don't expect
that it would be particularly fun to implement. e.g. the example
which is getting a bit ugly IMHO. But it wou
On Saturday, November 12, 2016 03:30:58 Jerry via Digitalmars-d wrote:
> 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
> >>
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 mix
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
On Friday, 11 November 2016 at 15:36:18 UTC, Taylor Hillegeist
wrote:
In the past I have worked with D, C#, Java, Python and C and
some other less popular languages. Most recently working with
C# I suddenly realize the convenience and flexibility I had in
D. One case in particular is with bit-f
In the past I have worked with D, C#, Java, Python and C and some
other less popular languages. Most recently working with C# I
suddenly realize the convenience and flexibility I had in D. One
case in particular is with bit-fields in D they are a pleasure to
use and implement, but in C# they ar