Re: D-issapointed after using C# for a while.

2016-11-12 Thread Era Scarecrow via Digitalmars-d
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

Re: D-issapointed after using C# for a while.

2016-11-11 Thread Jonathan M Davis via Digitalmars-d
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 > >>

Re: D-issapointed after using C# for a while.

2016-11-11 Thread Jerry via Digitalmars-d
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

Re: D-issapointed after using C# for a while.

2016-11-11 Thread Jonathan M Davis via Digitalmars-d
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

Re: D-issapointed after using C# for a while.

2016-11-11 Thread Jerry via Digitalmars-d
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

D-issapointed after using C# for a while.

2016-11-11 Thread Taylor Hillegeist via Digitalmars-d
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