Thread overview | |||||
---|---|---|---|---|---|
|
April 06, 2005 Code with no effect compiles okay | ||||
---|---|---|---|---|
| ||||
[file: test.d]
class Foo {}
void main() { new Foo; }
[CMD: dmd -w test.d ]
--
Derek Parnell
Melbourne, Australia
http://www.dsource.org/projects/build/ v1.19 released 04/Apr/2005
http://www.prowiki.org/wiki4d/wiki.cgi?FrontPage
6/04/2005 2:41:24 PM
|
April 06, 2005 Re: Code with no effect compiles okay | ||||
---|---|---|---|---|
| ||||
Posted in reply to Derek Parnell | Derek Parnell wrote:
> [file: test.d]
> class Foo {}
> void main() { new Foo; }
>
>
> [CMD: dmd -w test.d ]
>
There's nothing wrong with the code. I would be surprised if it didn't compile.
|
April 07, 2005 Re: Code with no effect compiles okay | ||||
---|---|---|---|---|
| ||||
Posted in reply to zwang | On Thu, 07 Apr 2005 00:46:05 +0800, zwang <nehzgnaw@gmail.com> wrote:
> Derek Parnell wrote:
>> [file: test.d]
>> class Foo {}
>> void main() { new Foo; }
>> [CMD: dmd -w test.d ]
>>
>
> There's nothing wrong with the code. I would be surprised if it didn't compile.
True. IIRC one of the goals of D was to make meaningless code illegal. Maybe that is limited to where it commonly causes a bug eg.
a == b; //programmer meant a = b;
Regan
|
Copyright © 1999-2021 by the D Language Foundation