trouble getting started with D

Steven Schveighoffer schveiguy at yahoo.com
Thu Mar 18 05:58:50 PDT 2010


On Thu, 18 Mar 2010 08:43:40 -0400, Andrew Marlow  
<marlow.andrew at googlemail.com> wrote:

> bearophile Wrote:
>
>> Andrew Marlow Wrote:
>> >So I tried ldc but it complains that it can't import std.stdio.<
>>
>> ldc is a D1 compiler that comes with Tango standard lib, so it doesn't  
>> have the std.stdio. You have to use Tango I/O functions.
>
> Well, thanks for that, at least I know now. But I am a bit peeved. What  
> is the point in calling something 'std' if it is not standard. I am used  
> to 'std' meaning 'it comes with the compiler environment'.

It does.  Tango is an alternative standard library, and in order to avoid  
naming conflicts with D's standard library Phobos, the root package is  
named tango instead of std.

LDC is an alternative compiler to the D reference compiler, their choice  
of Tango as a standard library cannot be controlled by D or the spec.  It  
is a constant source of confusion and contention that there are "two"  
standard libraries.

-Steve



More information about the Digitalmars-d mailing list