thank you all for your help.
hi,
are there any 64bit windows header files availabe?
Ahh, looks like the stack trace is supported only in debug mode.
-g option made the exception to spit out the function names.
$ rdmd -g t.d
object.Exception@t.d(5): in f1
0x0040CC9C in char[][]
core.sys.windows.stacktrace.StackTrace.trace()
0x0040CB27 in core.sys.windows.stack
Could someone please tell me how can I get the stack trace when
an exception is thrown? My test code:
Code: -
void f1() {
throw new Exception("in f1");
}
void f2() {
f1();
}
void f3() {
f2();
}
void main() {
f3();
new to d Wrote:
> Robert Clipsham Wrote:
>
> > On 06/06/10 14:00, new to d wrote:
> > > It's a typical hello world program:
> > >
> > > import std.stdio;
> > >
> > > void main(string[] args) { writeln("Hello world!"); }
&g
Robert Clipsham Wrote:
> On 06/06/10 14:00, new to d wrote:
> > It's a typical hello world program:
> >
> > import std.stdio;
> >
> > void main(string[] args) { writeln("Hello world!"); }
> >
> > I also tried using printf instead of
Robert Clipsham Wrote:
> On 06/06/10 13:40, new to d wrote:
> > After reading on this newsgroup about the use of D with cgi i've
> > tried it on my host. Even a simple hello world program gives me
> > internal server error while equivalent c program compiled with gcc
&g
new to d Wrote:
> After reading on this newsgroup about the use of D with cgi i've tried it on
> my host. Even a simple hello world program gives me internal server error
> while equivalent c program compiled with gcc works fine. Does any one here
> have any idea what the pro
After reading on this newsgroup about the use of D with cgi i've tried it on my
host. Even a simple hello world program gives me internal server error while
equivalent c program compiled with gcc works fine. Does any one here have any
idea what the problem could be?
Philippe Sigaud Wrote:
> On Thu, May 6, 2010 at 18:24, Ali Çehreli wrote:
>
> > Ali Çehreli wrote:
> >
> >> new to d wrote:
> >>
> >>> Is there any function in phobos that does something like that:
> >>>
> >>> auto a = [[1,
Is there any function in phobos that does something like that:
auto a = [[1,2],[3,4]];
assert(equals(flatten(a), [1,2,3,4]));
I am just learning D and ca't find anything like that in the docs.
hi,
how does one convert char[] to BSTR and back? i am looking to use a dll that
contains function such as
BSTR tester = gettest(BSTR *in, BSTR in1);
any help is appreciated.
Thanks very much indeed for your help. The version posted does work.
Unfortunately I won't be able to use D for my project, this bug has scared the
management, D is still a moving target. I will have to wait until it is more
stable.
Cheers.
Gide Nwawudu Wrote:
> On Fri, 28 Nov 2008 13:58:28
Small correction, the code I posted works with D1.0 but not with D2.0. What do
I need to change to make it work with D 2.0?
is it better to use D 2 or D 1?
sorry for crossposting, I started my questions on the D group but I was
instructed to ask here.
thanks
New Wrote:
> Hello,
>
Hello,
I originally posted this question to the wrong group, I am trying here as
suggested.
I am new with D and am stuck with something I hope somebody can help me with it.
I am trying sort an array of paths which can take the two following forms:
/usr---> normal path
/
15 matches
Mail list logo