Changes before 1.0

Tom tom at nospam.com
Sat Dec 2 21:45:46 PST 2006


Jordan Miner wrote:
> Hello, I have been reading this newsgroup on and off for over a year, but this
> is my first post. I first found D because I got fed up with the VMs of Java
> and C# and the slowness of Ruby and Python. I went online to look for a
> language that compiled to native code, but was easier to use than C++, and I
> found D within minutes.

I've discovered D in a similar manner :) (only that I'm following it 
since 2004). I'm still so glad I found it.

> --4--
> It would be helpful if the following code would work:
> 	enum TestEnum {
> 		Value1, Value2
> 	}
> 	writefln("%s", TestEnum.Value2);
> It should print "Value2", but instead gives:
> 	Error: std.format formatArg
> While using C# the other day, I needed to know what enum value a variable was,
> so I tried printing it and I got the name of the enum member.
> 	enum TestEnum {
> 		Value1, Value2
> 	}
> 	Console.WriteLine(TestEnum.Value2);
> This prints "Value2" with .NET.

I agree enums could be so much better.

> --5--
> I know that it has been brought up before, but I would like to add my support
> to this being put into object.d:
> 	alias char[] string;

Yep, I do ALWAYS write this alias in my D programs.
Also:

alias wchar[] wstring;
alias dchar[] dstring;

--
Tom;



More information about the Digitalmars-d mailing list