Re: Nicer looking ddoc

2010-08-31 Thread Yao G.
On Wed, 01 Sep 2010 00:51:13 -0500, Jonathan M Davis wrote: Is there a good place to look on how to make ddoc look like what's on the website, or is the best option to dig through what comes with the compiler and figure out what it's doing? - Jonathan M Davis Check the Phobos ddoc files

Nicer looking ddoc

2010-08-31 Thread Jonathan M Davis
Is there a good place to look on how to make ddoc look like what's on the website, or is the best option to dig through what comes with the compiler and figure out what it's doing? - Jonathan M Davis

d and c

2010-08-31 Thread Ellery Newcomer
Hello. Randomly bored tonight. Motivated by this: http://stackoverflow.com/questions/3540596/mixing-c-and-d-code-in-the-same-program, I was trying to get c to call d. I can't remember; is it actually possible? 64 bit Fedora and gcc; here's what I have: $ cat test.d import std.c.stdio; ext

Re: Reading stdin in Windows 7

2010-08-31 Thread Andrej Mitrovic
Oooops, I meant: std.stdio.StdioException: Bad file descriptor type test.d | test.exe works, but waits on exit: test.exe | type test.d works fine: test.exe < test.d Andrej Mitrovic Wrote: > I get the same thing on XP. > > If you swap the two like so: > type.exe | type.d > > Then it works but

Re: Reading stdin in Windows 7

2010-08-31 Thread Andrej Mitrovic
I get the same thing on XP. If you swap the two like so: type.exe | type.d Then it works but it will wait on exit. This works nicely: type.exe < type.d Joel Christensen Wrote: > >> > Stanislav Blinov writes: > Content-Type: text/plain; charset=UTF-8; format=flowed > Content-Transfer-Encodin

Reading stdin in Windows 7

2010-08-31 Thread Joel Christensen
>> Stanislav Blinov writes: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hello, I'm receiving strange results with reading stdin on Windows 7. Consider this code: module test; import std.stdio; void main(string[] args) { foreach (int i, st

Re: Dynamic method example in TDPL

2010-08-31 Thread Joel Christensen
Thanks for the fix up Philippe. Just a little note. Where it says 'DynMethod m', you can put 'auto m', but I'm wondering is it some times clearer to have the class name even though 'auto' works.

Re: writef: How to output hex byte?

2010-08-31 Thread Nick Sabalausky
"torhu" wrote in message news:i5cqgo$37...@digitalmars.com... > On 29.08.2010 07:06, Nick Sabalausky wrote: >> ubyte myByte = 0x09; >> writef("%%%.2X", myByte); >> writef("%%%02X", myByte); > > On codepad.org (DMD 1.026 last time I checked), this prints this: > %09%09 > > So it's probably a bug i

Re: Overloading + on points

2010-08-31 Thread Simen kjaeraas
Eduardo Cavazos wrote: Hello, Here's a short program which creates a type for points and overloads '+' to do element wise addition as well as addition to floats, however it produces an error: -- import std.stdio ; struc

Overloading + on points

2010-08-31 Thread Eduardo Cavazos
Hello, Here's a short program which creates a type for points and overloads '+' to do element wise addition as well as addition to floats, however it produces an error: -- import std.stdio ; struct Pt { float x , y ; Pt