Re: Stack allocator?

2009-04-18 Thread Tim Matthews
On Sat, 18 Apr 2009 16:42:28 -0700 Robert Fraser wrote: > I remember a while back someone posted an easy dynamic stack > allocator... anyone have the link? > > Thanks, > Robert Tango has this: http://dsource.org/projects/tango/docs/stable/tango.util.container.more.Stack.html

Stack allocator?

2009-04-18 Thread Robert Fraser
I remember a while back someone posted an easy dynamic stack allocator... anyone have the link? Thanks, Robert

Re: Documentation on DMD source

2009-04-18 Thread Unknown W. Brackets
You'll get a lot of use out of defining the debugs for #ifdefs, and/or uncommenting printfs and following it. If your code may not be running, use a breakpoint or printf to ensure it is. -[Unknown] Daniel Keep wrote: Daniel Keep wrote: Is there any guide to, or documentation for the DMD co

associative arrays with arrays as value

2009-04-18 Thread MLT
I am just learning D, and playing around. So I have no good reason why one would do the following, but I also don't understand why it doesn't work... I was trying to make an associative array with int[5] as the value type. That didn't work properly. int[] did, and I don't understand why. Here is

Re: convert and assign to the BSTR char

2009-04-18 Thread John C
new Wrote: > 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. wchar* bstr = SysAllocString(std.utf.toUTF16z(s)); and char[] s = std.utf.toUTF8(bstr

convert and assign to the BSTR char

2009-04-18 Thread new
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.

Re: Documentation on DMD source

2009-04-18 Thread Daniel Keep
Daniel Keep wrote: > Is there any guide to, or documentation for the DMD compiler source? > > I'm currently trying to make TypeInfo_Function not completely useless, > but I'm not sure my code is actually being run. > > -- Daniel Found this page: http://www.prowiki.org/wiki4d/wiki.cgi?DMDSour

Documentation on DMD source

2009-04-18 Thread Daniel Keep
Is there any guide to, or documentation for the DMD compiler source? I'm currently trying to make TypeInfo_Function not completely useless, but I'm not sure my code is actually being run. -- Daniel