Re: template parameters

2009-09-25 Thread BCS
Hello Ellery, BCS wrote: Hello Ellery, Hello. Today I was looking at the grammar for template value parameters and realized I didn't know what the conditional expression is for in TemplateValueParameter => BasicType Declarator : ConditionalExpression So what does it do? (I assume = Condi

Re: What if gc.disable at all

2009-09-25 Thread Sam Hu
Daniel Keep Wrote: > How about by reading the error message? > > Error 42:Symbol Undefined _D5tango4core6Memory2GC6addrOfFpvZPv > > --> > > Error 42:Symbol Undefined void* tango.core.Memory.GC.addrOf(void*) > > Ergo, you didn't link in tango.core.Memory, which it wants. Thanks a lot.But may I

Re: template parameters

2009-09-25 Thread Jarrett Billingsley
On Fri, Sep 25, 2009 at 6:48 PM, Ellery Newcomer wrote: > Christopher Wright wrote: >> Ellery Newcomer wrote: >>> Okay, let me rephrase that: >>> >>> When you have a preceded by a colon in a template value >>> parameter, what are its semantics? Is it the same as a default parameter >>> value? Is

Re: template parameters

2009-09-25 Thread Ellery Newcomer
Christopher Wright wrote: > Ellery Newcomer wrote: >> Okay, let me rephrase that: >> >> When you have a preceded by a colon in a template value >> parameter, what are its semantics? Is it the same as a default parameter >> value? Is it some sort of constraining expression? Is it a vestige? > > vo

Re: template parameters

2009-09-25 Thread Christopher Wright
Ellery Newcomer wrote: Okay, let me rephrase that: When you have a preceded by a colon in a template value parameter, what are its semantics? Is it the same as a default parameter value? Is it some sort of constraining expression? Is it a vestige? void foo(T : int)(T value) { // value

Re: template parameters

2009-09-25 Thread Ellery Newcomer
BCS wrote: > Hello Ellery, > >> Hello. >> >> Today I was looking at the grammar for template value parameters and >> realized I didn't know what the conditional expression is for in >> >> TemplateValueParameter => BasicType Declarator : ConditionalExpression >> >> So what does it do? >> >> (I assu

Re: template parameters

2009-09-25 Thread BCS
Hello Ellery, Hello. Today I was looking at the grammar for template value parameters and realized I didn't know what the conditional expression is for in TemplateValueParameter => BasicType Declarator : ConditionalExpression So what does it do? (I assume = ConditionalExpression is the defau

template parameters

2009-09-25 Thread Ellery Newcomer
Hello. Today I was looking at the grammar for template value parameters and realized I didn't know what the conditional expression is for in TemplateValueParameter => BasicType Declarator : ConditionalExpression So what does it do? (I assume = ConditionalExpression is the default value for the

Re: DLLs and headaches

2009-09-25 Thread Don
Richard Webb wrote: Don Wrote: If D2 -- I haven't been able to get D2 DLLs to work at all. They just crash during the initialization (something to do with initialising the thread-locals, I think, but I haven't been able to track it down completely). Hi, I've recently been having a go at wri