More D newb questions.

Bruce Adams tortoise_74 at yeah.who.co.uk
Fri May 9 15:30:58 PDT 2008


On Thu, 08 May 2008 10:39:15 +0100, Me Here <p9e883002 at sneakemail.com>  
wrote:

> Janice Caron wrote:
>
>>
>> By giving a compile error, of course. That's how it's supposed to
>> work. It's telling you to fix your code, e.g. to
>>
>>         void main() {
>>             char[] a = ['a'], b = ['b'];
>>             writefln( a ~ b );
>>         }
>
> That's like saying a car is "working", so long as it displays a red  
> light on
> the dashboard to tell you that it isn't. If real world situations were  
> always
> defined in terms of compile time constants life, would be much easier.

Perhaps its worth pointing out that part of the spec for a car to pass
road worthiness tests is for there to be clear indications of certain
errors on the dashboard. There must be an oil light. There must be a fuel
gauge. etc.



More information about the Digitalmars-d mailing list