What are the worst parts of D?

Johannes Pfau via Digitalmars-d digitalmars-d at puremagic.com
Thu Sep 25 02:49:17 PDT 2014


Am Wed, 24 Sep 2014 22:30:49 -0700
schrieb Walter Bright <newshound2 at digitalmars.com>:

> There's more than that, but yeah. Most of my types I'll write a
> "pretty printer" for, and use that. No conceivable debugger can guess
> how I want to view my data.

You can call functions with GDB, but I guess you haven't used GDB much.

Breakpoint 1, D main () at main.d:5
(gdb) print a
$1 = (ABCD &) @0x7ffff7ebfff0: {<Object> = {__vptr = 0x4b8c60
<main.ABCD.vtbl$>, __monitor = 0x0}, <No data fields>}
(gdb) print a.toString()
$2 = "Hello World!"



More information about the Digitalmars-d mailing list