Re: How to print unicode like: こ ん に ち は 世界

2011-05-21 Thread Matthew Ong
On 5/21/2011 2:46 PM, Matthew Ong wrote: On 5/20/2011 2:55 PM, Russel Winder wrote: On Thu, 2011-05-19 at 22:37 +0200, Andrej Mitrovic wrote: [ . . . ] You would also need a Unicode-aware font, maybe Lucida or something similar. Typically fixed-point fonts used for programming have little suppo

Re: How to break module into multiple file.

2011-05-21 Thread Matthew Ong
On 5/20/2011 4:23 AM, Nick Sabalausky wrote: "Matthew Ong" wrote in message news:ir3801$84b$1...@digitalmars.com... On 5/14/2011 3:17 AM, Nick Sabalausky wrote: "Jason House" wrote in message But yea, one-class-per-file is really a Java thing (and then a few other Not true entirely, the

How to interface with existing Java Code at the API level.

2011-05-21 Thread Matthew Ong
Hi, D has major potential to replace C/C++ at the system API level. What I can see D is doing now is trying to glue to the existing C API instead of replacing that OLD OLD language. But it is too early to see if that is the case at the Business Application level to replace enterprise level reso

Re: How to break module into multiple file.

2011-05-21 Thread Nick Sabalausky
"Matthew Ong" wrote in message news:ir7qio$28mn$1...@digitalmars.com... > On 5/20/2011 4:23 AM, Nick Sabalausky wrote: >> "Matthew Ong" wrote in message >> news:ir3801$84b$1...@digitalmars.com... >>> >>> As for the real reason it is for: >>> That current D layout seem to limit that one file to a

Some help on Mixin Template at Class level.

2011-05-21 Thread Matthew Ong
Hi, As the documentation at D ONLY shows template at functions level and also ONLY the content of a class but without the definition of a class. Could this code be working? Or did I miss out some syntax. mixin template AType(alias T, U, alias V){ class T : ClassC { // Class level Template priv

Re: How to interface with existing Java Code at the API level.

2011-05-21 Thread Jonathan M Davis
On 2011-05-21 01:04, Matthew Ong wrote: > Hi, > > D has major potential to replace C/C++ at the system API level. > What I can see D is doing now is trying to glue to the existing C API > instead of replacing that OLD OLD language. > > But it is too early to see if that is the case at the Busines

Re: Some help on Mixin Template at Class level.

2011-05-21 Thread Simen Kjaeraas
On Sat, 21 May 2011 10:54:54 +0200, Matthew Ong wrote: mixin template AType(alias T, U, alias V){ class T : ClassC { // Class level Template This gives you a class called T. You seem to want it to have the name you pass as a string, in which case you have to use string mixins. private:

Re: What is this strange alias syntax?

2011-05-21 Thread Simen Kjaeraas
On Sat, 21 May 2011 05:12:20 +0200, Andrej Mitrovic wrote: Taken from the docs: alias int func(int); void main() { if ( is(func[]) ) // not satisfied because arrays of writeln("satisfied");// functions are not allowed else writeln("not satisfied"); }

Re: Some help on Mixin Template at Class level.

2011-05-21 Thread Matthew Ong
On 5/21/2011 5:12 PM, Simen Kjaeraas wrote: On Sat, 21 May 2011 10:54:54 +0200, Matthew Ong wrote: mixin template AType(alias T, U, alias V){ class T : ClassC { // Class level Template This gives you a class called T. You seem to want it to have the name you pass as a string, in which case y

Re: How to break module into multiple file.

2011-05-21 Thread Russel Winder
On Sat, 2011-05-21 at 04:35 -0400, Nick Sabalausky wrote: [ . . . ] > Subversion handles multiple people editing the same file perfectly fine. But > Hg probably is better than SVN, overall. I've been a happy SVN user for a > long time, but even I'm starting to get won over by Hg. Of course, some

Re: How to print unicode like: こ ん に ち は 世界

2011-05-21 Thread Andrej Mitrovic
Oh yeah cmd.exe doesn't really have that many font options. Personally I use console2 from http://sourceforge.net/projects/console/ , which has font options and nice things compared to cmd.exe. (It's really just a GUI wrapper with some extras).

web development in D

2011-05-21 Thread joe
I currently do most of my web development in PHP, with some work in Ruby with RoR. Right now I'm starting to think about building my own stack for web dev (I already use my own MVC framework and libs in PHP), but I'd really like to move to something faster and more powerful. Java or ASP.NET are two

Re: web development in D

2011-05-21 Thread Trass3r
Have a look at the recent thread titled 'How To Dynamic Web Rendering?' Adam Ruppe has created a package for web development with D and it seems to work like a charm.

Re: How to interface with existing Java Code at the API level.

2011-05-21 Thread Robert Clipsham
On 21/05/2011 09:58, Jonathan M Davis wrote: On 2011-05-21 01:04, Matthew Ong wrote: Hi, D has major potential to replace C/C++ at the system API level. What I can see D is doing now is trying to glue to the existing C API instead of replacing that OLD OLD language. But it is too early to see

Re: web development in D

2011-05-21 Thread Adam D. Ruppe
Yea, the Dynamic Web Rendering thread just went over this, so shouldn't be hard to find that thread. It went into discussing my method and got a little long, but the summary is: You can write web apps in D using the standard CGI interface or a long lived process (embedded http server or whatever.

Re: web development in D

2011-05-21 Thread Nick Sabalausky
"joe" wrote in message news:ir8frr$ait$1...@digitalmars.com... > > Second, from your own experience using D do think it would make a good or > bad > choice for a web development language? I'd really say that a good choice for a web development language is whatever you find to be a good choice

Re: .init of field == type's initializer or field initializer?

2011-05-21 Thread Stewart Gordon
On 20/05/2011 04:19, Andrej Mitrovic wrote: Foo.b.init is actually 0. Are the docs wrong, or is the compiler wrong? Let me know so I can fix the docs if necessary as I'm doing that now. Known issue: http://d.puremagic.com/issues/show_bug.cgi?id=5715 Stewart.