Re: tools.ctfe for D1

2010-04-22 Thread Ellery Newcomer
well, here you are: http://www.dsource.org/projects/dexcelapi/browser/trunk/src/dxl/util/ctfe.d and here is where I use it: http://www.dsource.org/projects/dexcelapi/browser/trunk/src/dxl/biff/Enums.d I don't think it's worth the effort of changing that stuff to work with your table parsing, bu

Re: how to implement vector structs with different number of components

2010-04-22 Thread Trass3r
Am 13.03.2010, 01:29 Uhr, schrieb bearophile : I have implemented a generic nD vector struct for D1. When I have translated it to D2 I can show it and Andrei may add it to Phobos, because everyone and their uncle need vectors. Have you done so yet?

Re: tools.ctfe for D1

2010-04-22 Thread FeepingCreature
On 21.04.2010 16:43, Ellery Newcomer wrote: > On 04/21/2010 05:43 AM, FeepingCreature wrote: >> On 20.04.2010 01:49, Ellery Newcomer wrote: >>> Are there any good libraries for ctfe/code generation? >>> >>> I don't know, things like parsing support for compile time strings, >>> string formatting, t

Re: What's the diff between immutable and const?

2010-04-22 Thread Ali Çehreli
XCPPCoder wrote: What's the diff between immutable and const? Very shortly: immutable means "never changes", "const" means "may not be changed through this reference". Some more information: http://www.digitalmars.com/d/2.0/const3.html Ali

Re: What's the diff between immutable and const?

2010-04-22 Thread Simen kjaeraas
XCPPCoder wrote: What's the diff between immutable and const? Basically, const means 'I can't change this', while immutable means 'nobody will change this'. The idea is that const is a guarantee given by a function, while immutable is a guarantee for the whole program. Also, immutable opens u

What's the diff between immutable and const?

2010-04-22 Thread XCPPCoder
What's the diff between immutable and const?