Ok I found it, I have to put stdout.writeln not writeln. But don't know why we
have to force like this. More strange, I only changed the first writeln to
stdout.writeln and all next writeln will print in file too !!! If someone know
why, I would like to understand.
Thanks.
Hi !
someone could say me if it's possible to redirect stdout of a program running
in background to a file.
I use writeln() to debug, I would like to redirect results of writeln() into
file. I tried :
program >> /tmp/log 2>&1
program >> /tmp/log
program &> /tmp/log
...never success.
so maybe it's
Hello BCS !
> Hello GG,
>
> > Thanks you very much for your explanation ! I got it work with gdb and
> > got this:
> >
> [...]
>
> I don't know enough about the internals to be able to help you beyond maybe
> converting the seg-v into an assert (but
return ::memcmp(s1, s2, nchars); }
--
I hope it can help !
Thanks !
GG
course, it's normal.
So could you explain me how to link gdb with DMD ? Is there an option parameter
to pass to DMD?
Thanks !
GG
/posix/release/etc/c/zlib/inffast.o
libdruntime.a
make: *** [obj/posix/release/libphobos2.a] Segmentation fault (core dumped)
libdruntime.a is needed, so I compiled it and got no error, but libphobos2.a
doesn't build.
Am I missing something ?
Thanks !
GG
fix :
http://d.puremagic.com/issues/show_bug.cgi?id=3692
Thanks !
GG
I tried std.boxer,
Box[char[]][int] bb;
bb[0]["Month"] = box("Jan");
bb[0]["Profit"] = box(800);
bb[1]["Month"] = box("Jan");
bb[1]["Profit"] = box(200);
/*section work*/
writefln("%s",bb[0]["Month"]);
writefln("%d",bb[0]["Pro
Yes I can't use struct and/or enum because I can't know type and number of data
that user could pass.
In this example, we talk about Month, but it could be Minutes, week... So I try
to program dynamic not static.
In fact I'm learning D thought a little project of graphic chart. I would like
to
Sorry, but I ckicked on REPLY and it created a new thread after posting!?
I tried your trick but I got "Error: cannot append type string to type
VariantN!(maxSize)[]"
on : vars ~= "Jan";
I found this : http://d.puremagic.com/issues/show_bug.cgi?id=3692, the issue
has been REOPEN.
Thanks for helping !
n
I'm doing something wrong ? Or it's same problem as :
http://digitalmars.com/d/archives/digitalmars/D/Variant_string_associative_array_..._fail_87248.html
Same problem with dmd2.040
Thanks !
GG
12 matches
Mail list logo