Re: Compile-time sets and hash tables

2013-11-14 Thread Philippe Sigaud
On Thu, Nov 14, 2013 at 9:31 PM, Andrej Mitrovic wrote: > On 11/14/13, Philippe Sigaud wrote: > - I'd greatly like for those sets or hash tables to be >> CTFE-compatible. > > Well if it's only used in CTFE, I'd imagine a simple struct wrapping > an array and doing "!canFind" when adding elements

Re: Compile-time sets and hash tables

2013-11-14 Thread Andrej Mitrovic
On 11/14/13, Philippe Sigaud wrote: - I'd greatly like for those sets or hash tables to be > CTFE-compatible. Well if it's only used in CTFE, I'd imagine a simple struct wrapping an array and doing "!canFind" when adding elements would do the job, no?

Compile-time sets and hash tables

2013-11-13 Thread Philippe Sigaud
Hi, I'm playing with parsers right now, and have to use a lot of (small) sets, sets of sets and hash tables. I'm getting some strange behaviour from built-in AAs and I'm a bit blocked by them not working at compile-time. I think I'm ready to code some small set and hash table for my own ne