Re: Stack trace output on windows

2012-10-17 Thread Benjamin Thaut
file? Kind Regards Benjamin Thaut

Re: Do we have GC-free hash map implementation sitting somewhere?

2012-10-16 Thread Benjamin Thaut
Benjamin Thaut

Re: Stack trace output on windows

2012-10-16 Thread Benjamin Thaut
the dbghelp.dll, which comes with the windows sdk, or visual studio, it will also correctlry resolve cv smybols. I have windows 7 64 bit service pack 1 with visual studio 2010 installed and the D stacktracking correctly resolves cv symbols for me. Kind Regards Benjamin Thaut

Ignoring defaults from sc.ini?

2012-10-14 Thread Benjamin Thaut
inside sc.ini would be really great. Kind Regards Benjamin Thaut

Re: float[] → Vertex[] – decreases performance by 1000%

2012-08-24 Thread Benjamin Thaut
ill allocate an block of memory which has the size of Vertex, then it will fill the date into that block of memory, and then memcpy it to your buffer array. You could try working around this by doing: buffer[elements++].__ctor(x, y, z, nx, ny, nz, u, v, u_biome, v_biome); Kind Regards Benjamin Thaut

Re: How to instantiate class object NOT in the GC heap

2012-07-15 Thread Benjamin Thaut
Don't know how to initialize an object of type " ~ T.stringof ~ " with arguments " ~ args.stringof ~ "\nAvailable ctors:\n" ~ ListAvailableCtors!T() ); } return result; } } Kind Regards Benjamin Thaut

TypeInfo_Class getMembers() and offTi()

2012-07-15 Thread Benjamin Thaut
Do the getMembers() and offTi() functions of TypeInfo_Class already work? If yes who generates the information for them, or do I have to do that manually with a template? Are there any examples on this? I couldn't find anything in the documentation. Kind Regards Benjamin Thaut

Re: Portable way to obtain member function pointer (and invoke it)?

2012-07-08 Thread Benjamin Thaut
time: auto func = &object.func; This will create a delegate with the this pointer and the function pointer. If you want to build it manually you can do that also: alias void delegate() func_t; func_t func; func.funcptr = GetFunctionPointer(); func.ptr = object; Kind Regards Benjamin Thaut

Re: read Ogg/Mp3 file

2012-07-08 Thread Benjamin Thaut
y for reading the whole format. Kind Regards Benjamin Thaut

Re: read Ogg/Mp3 file

2012-07-08 Thread Benjamin Thaut
Am 08.07.2012 16:32, schrieb Namespace: On Sunday, 8 July 2012 at 13:42:39 UTC, Benjamin Thaut wrote: Am 08.07.2012 12:03, schrieb Namespace: Has anyone experience with reading of .Ogg or .Mp3 files and can give me a briefing? Or does anyone know if sndfile.h was ported to D? I'm

Re: read Ogg/Mp3 file

2012-07-08 Thread Benjamin Thaut
Am 08.07.2012 12:03, schrieb Namespace: Has anyone experience with reading of .Ogg or .Mp3 files and can give me a briefing? Or does anyone know if sndfile.h was ported to D? I'm using libvorbis to read and OpenAL to playback .ogg files. The functions you need to import are really minimal. The

Re: Keyword to avoid not null references

2012-04-23 Thread Benjamin Thaut
to T (your first case) However T will not implicitly convert to NotNull!T (as far as I know such a implict conversion is not possible in D, i suggested a @implicit modifier for a constructor to allow such implicit type conversions, but it was rejected) Kind Regards Benjamin Thaut

Missing __ModuleInfoZ symbol when using dll

2012-01-28 Thread Benjamin Thaut
_D6thBase6format12__ModuleInfoZ All the other functions I use from the dll link fine though. When running the dll through dumpbin from visual studio the requested module is not listed in the exported symbols list of the dll. What did I do wrong? Kind Regards Benjamin Thaut

Re: Method overloading without Type2Type

2011-04-26 Thread Benjamin Thaut
Am 26.04.2011 22:41, schrieb Philippe Sigaud: On Tue, Apr 26, 2011 at 22:06, Benjamin Thaut wrote: The Problem with that version is, that the code that is generated looks like void main(string[] args){ auto test = new Foo!(int,float,double,short,byte)(); test.print

Re: Method overloading without Type2Type

2011-04-26 Thread Benjamin Thaut
Am 26.04.2011 21:55, schrieb Philippe Sigaud: On Tue, Apr 26, 2011 at 18:41, Benjamin Thaut wrote: Thanks, but that is not connected to my question at all, I want to implement the echo method so that the type is passed as a template argument, and not as a function argument. While that is

Re: Method overloading without Type2Type

2011-04-26 Thread Benjamin Thaut
template argument, and not as a function argument. While that is happening I still want to be able to overload the function. Is this possible in D 2? -- Kind Regards Benjamin Thaut

Method overloading without Type2Type

2011-04-25 Thread Benjamin Thaut
e2Type!(short)()); } I'm wondering if there is any way in D 2 to not use Type2Type so that the calls to echo would look like: test.echo!(double)(); test.echo!(short)(); The solution does not have to use inheritance, any idea? -- Kind Regards Benjamin Thaut

delegate to shared member function

2011-04-24 Thread Benjamin Thaut
mbinations but couldn't find one that does work. So what is the correct syntax for a delegate to a shared member function? -- Kind Regards Benjamin Thaut

traits for full identifier

2011-04-18 Thread Benjamin Thaut
Hello, is there any way to get the full identifier of a type. E.g. module.submodule.typename instead of classname I tried typename.stringof and __traits(identifier,typename) so far. -- Kind Regards Benjamin Thaut

atomicOp problem

2010-10-21 Thread Benjamin Thaut
ut what I did wrong I would be very glad. If I did not do anything wrong, I don't quite understand whats the exact problem because the code inside atomic.d looks good (at least at my level of understanding) -- Kind Regards Benjamin Thaut

Re: lvalue method

2010-10-13 Thread Benjamin Thaut
Am 13.10.2010 15:50, schrieb BCS: Hello Benjamin, Am 08.10.2010 11:13, schrieb Lars T. Kyllingstad: On Fri, 08 Oct 2010 09:33:22 +0200, Benjamin Thaut wrote: Hi, I'm writing a vec4 math struct and I have a method of which the return value has to be a lvalue so I wonder which is the co

mutable reference to const object

2010-10-12 Thread Benjamin Thaut
I want to have a mutable reference to a const object. So that I can reasign the reference but can not modifiy the object. Is this possible in D 2.0? I found tailconst in the const FAQ but as it is not implemented in D 2.0 I'm clueless how to realize this. -- Kind Regards Benjamin Thaut

Re: lvalue method

2010-10-08 Thread Benjamin Thaut
Am 08.10.2010 11:13, schrieb Lars T. Kyllingstad: On Fri, 08 Oct 2010 09:33:22 +0200, Benjamin Thaut wrote: Hi, I'm writing a vec4 math struct and I have a method of which the return value has to be a lvalue so I wonder which is the correct way to do this: vec4 Normalize()

lvalue method

2010-10-08 Thread Benjamin Thaut
some other way? -- Kind Regards Benjamin Thaut

Stop function parameters from being copied.

2010-10-07 Thread Benjamin Thaut
largestruct bar) { ... } 2. function foo(ref const(largestruct) bar) { ... } 3. something else Kind Regards Benjamin Thaut

[solved]Re: class x is hidden by y

2010-10-07 Thread Benjamin Thaut
Thanks, that fixes it Kind Regards Benjamin Thaut

class x is hidden by y

2010-10-06 Thread Benjamin Thaut
please show me my mistake. Kind Regards Benjamin Thaut

<    1   2   3