Re: CT BitArray

2020-04-05 Thread Johan via Digitalmars-d-learn
On Wednesday, 31 October 2018 at 23:14:08 UTC, Bastiaan Veelo wrote: Currently, BitArray is not usable at compile time, so you cannot do ``` enum e = BitArray([1, 1, 1, 0]); ``` This gives /dlang/dmd/linux/bin64/../../src/phobos/std/bitmanip.d(1190): Error: `bts` cannot be interpreted at compil

Re: CT BitArray

2020-04-04 Thread Johan via Digitalmars-d-learn
On Friday, 3 April 2020 at 20:06:50 UTC, Steven Schveighoffer wrote: On 4/3/20 3:13 PM, Johan wrote: On Thursday, 2 April 2020 at 12:41:28 UTC, Steven Schveighoffer wrote: Hm... I thought there was precedent for providing fallback implementations for intrinsics. That is, you define the fun

Re: CT BitArray

2020-04-03 Thread Steven Schveighoffer via Digitalmars-d-learn
On 4/3/20 3:13 PM, Johan wrote: On Thursday, 2 April 2020 at 12:41:28 UTC, Steven Schveighoffer wrote: Hm... I thought there was precedent for providing fallback implementations for intrinsics. That is, you define the function, which is only used if the intrinsic is not available. I can't

Re: CT BitArray

2020-04-03 Thread Johan via Digitalmars-d-learn
On Thursday, 2 April 2020 at 12:41:28 UTC, Steven Schveighoffer wrote: On 4/2/20 8:26 AM, Bastiaan Veelo wrote: On Thursday, 1 November 2018 at 08:50:38 UTC, Bastiaan Veelo wrote: On Thursday, 1 November 2018 at 00:01:04 UTC, Stefan Koch wrote: On Wednesday, 31 October 2018 at 23:14:08 UTC, Bas

Re: CT BitArray

2020-04-02 Thread Steven Schveighoffer via Digitalmars-d-learn
On 4/2/20 8:26 AM, Bastiaan Veelo wrote: On Thursday, 1 November 2018 at 08:50:38 UTC, Bastiaan Veelo wrote: On Thursday, 1 November 2018 at 00:01:04 UTC, Stefan Koch wrote: On Wednesday, 31 October 2018 at 23:14:08 UTC, Bastiaan Veelo wrote: Currently, BitArray is not usable at compile time,

Re: CT BitArray

2020-04-02 Thread Bastiaan Veelo via Digitalmars-d-learn
On Thursday, 1 November 2018 at 08:50:38 UTC, Bastiaan Veelo wrote: On Thursday, 1 November 2018 at 00:01:04 UTC, Stefan Koch wrote: On Wednesday, 31 October 2018 at 23:14:08 UTC, Bastiaan Veelo wrote: Currently, BitArray is not usable at compile time, so you cannot do ``` enum e = BitArray([1

Re: CT BitArray

2018-11-01 Thread Bastiaan Veelo via Digitalmars-d-learn
On Thursday, 1 November 2018 at 00:01:04 UTC, Stefan Koch wrote: Tell me which version are you using and I'll make it for you. By the way this is a really generous offer, thanks for being like that!

Re: CT BitArray

2018-11-01 Thread Bastiaan Veelo via Digitalmars-d-learn
On Thursday, 1 November 2018 at 00:01:04 UTC, Stefan Koch wrote: On Wednesday, 31 October 2018 at 23:14:08 UTC, Bastiaan Veelo wrote: Currently, BitArray is not usable at compile time, so you cannot do ``` enum e = BitArray([1, 1, 1, 0]); ``` This gives /dlang/dmd/linux/bin64/../../src/phobos/s

Re: CT BitArray

2018-10-31 Thread Stefan Koch via Digitalmars-d-learn
On Wednesday, 31 October 2018 at 23:14:08 UTC, Bastiaan Veelo wrote: Currently, BitArray is not usable at compile time, so you cannot do ``` enum e = BitArray([1, 1, 1, 0]); ``` This gives /dlang/dmd/linux/bin64/../../src/phobos/std/bitmanip.d(1190): Error: `bts` cannot be interpreted at compil

CT BitArray

2018-10-31 Thread Bastiaan Veelo via Digitalmars-d-learn
Currently, BitArray is not usable at compile time, so you cannot do ``` enum e = BitArray([1, 1, 1, 0]); ``` This gives /dlang/dmd/linux/bin64/../../src/phobos/std/bitmanip.d(1190): Error: `bts` cannot be interpreted at compile time, because it has no available source code IIUC, that is becau