Re: How to print Chinese characters in console in window XP?

2009-06-29 Thread Elrood
@Rainer Deyke:

Thanks for your clarification.
The problem is that, unless you set up your system to use Chinese for
every non-unicode-ready application, systemwide and for all users, you
will not get Chinese character output in the Windows console.

The downside is that setting up your OS in such a way tends to render
the user interface of a lot of other applications unusable if Chinese
isn't your everyday language.

For a lot of us this isn't very practicable, eg. having my German
umlauts replaced with Chinese glyphs isn't exactly what I have dreamed
of all my life.
That's what I meant with the changes not being trivial, and your
response sounded a bit like I was talking nonsense and getting it to
work was a piece of cake, and I naturally was curious whether there was
a simple solution. While being a bit disappointing, thanks for
straightening out that this isn't the case.

Nonetheless there apparently is a bug here if D/Phobos with its supposed
unicode support isn't capable of producing output which is possible with
Python or even olde C++.


Re: Compiling Templates

2009-06-29 Thread Saaa
Always nice to see the inner workings, thanks.

Here a few things that bugged me:
Seeing templates as runtime functions, making the whole instantiation thing 
kind of strange :)
Trying to use implicitly deduces parameters for function templates.
Writing Foo(d) iso Foo!(int [][])(d).

--
template Foo(T: T[])
{
  void Foo(T array)
  {
writefln(T.stringof);
  }
}

void main()
{
  int[] d;
  Foo!(int [][])(d);
//intuitively I wrote int[] at first as that is what I want T to be
} 




Re: [SO] memory paging with D

2009-06-29 Thread BLS

BCS wrote:


http://stackoverflow.com/questions/1057219/memory-paging-with-d

I'm using D/Tango for catalog indexing, is there any library to aid with 
memory (RAM) paging for a dictionary which is in memory and can go up to 
10gb while performing indexing?




Why not using SQLite as memory db ?