Re: CTFE and -betterC

2018-03-14 Thread Flamaros via Digitalmars-d-learn
On Wednesday, 14 March 2018 at 01:17:54 UTC, rikki cattermole wrote: You will still need DllMain, that is a platform requirement. I am not sure about that because when DllAnalyser don't see it in the opengl32.dll from the system32 directory. And the documentation indicate that it is optional.

Re: fix struct API with an interface

2014-03-06 Thread Flamaros
On Thursday, 6 March 2014 at 13:35:13 UTC, John Colvin wrote: On Thursday, 6 March 2014 at 13:26:27 UTC, Flamaros wrote: I add directx 9 support on DQuick and as some of renderer objects are declared as struct, it seems it can make them derives from an interface. Need I use final class

fix struct API with an interface

2014-03-06 Thread Flamaros
I add directx 9 support on DQuick and as some of renderer objects are declared as struct, it seems it can make them derives from an interface. Need I use final class instead to avoid virtual methods? PS: I am not planning to support run-time switch between OpenGL and directX renderers.

Re: [Windows & DMD] No callstack when crash with Access violation reading location 0x00000000

2014-01-22 Thread Flamaros
On Wednesday, 22 January 2014 at 02:11:02 UTC, TheFlyingFiddle wrote: On Saturday, 18 January 2014 at 19:40:38 UTC, Xavier Bigand wrote: I am not sure the issue come really from my code, cause it just works fine on ATI cards, I do something Nvidia drivers dislike. I tried to replace GL_LINE_L

Re: libdl issues with DUB

2013-12-17 Thread Flamaros
On Tuesday, 17 December 2013 at 17:05:36 UTC, yazd wrote: On Tuesday, 17 December 2013 at 12:41:16 UTC, Flamaros wrote: When I build our project with DUB under linux I get some link errors about libdl, that is messing. In my main I have the following lines : version(Posix) { pragma(lib

libdl issues with DUB

2013-12-17 Thread Flamaros
When I build our project with DUB under linux I get some link errors about libdl, that is messing. In my main I have the following lines : version(Posix) { pragma(lib, "dl"); } This works well with MonoD, so it seems like version Posix isn't defined with DUB or pragma ignored.

Re: Running unittests in a D library

2013-11-08 Thread Flamaros
On Friday, 8 November 2013 at 20:29:19 UTC, Flamaros wrote: On Thursday, 20 September 2012 at 18:31:38 UTC, Jacob Carlborg wrote: On 2012-09-20 13:14, Jonathan M Davis wrote: On Thursday, September 20, 2012 12:34:50 Johannes Pfau wrote: But it should be possible. I'm not arguing th

Re: Running unittests in a D library

2013-11-08 Thread Flamaros
On Thursday, 20 September 2012 at 18:31:38 UTC, Jacob Carlborg wrote: On 2012-09-20 13:14, Jonathan M Davis wrote: On Thursday, September 20, 2012 12:34:50 Johannes Pfau wrote: But it should be possible. I'm not arguing that it shouldn't be possible. I'm just pointing out that it wouldn't re

Re: [Font] Getting font folder on all platforms

2013-11-08 Thread Flamaros
On Tuesday, 15 October 2013 at 23:10:32 UTC, Flamaros wrote: On Friday, 6 September 2013 at 20:54:53 UTC, Flamaros wrote: On Friday, 6 September 2013 at 16:05:43 UTC, Tourist wrote: On Thursday, 5 September 2013 at 19:48:07 UTC, Flamaros wrote: I am searching the right way to find fonts folder

ddoc doesn't generate entries of function without any comments?

2013-11-04 Thread Flamaros
I need dig into some low level APIs regularly. Modules like std.c.window and std.c.linux doesn't have any documentation about what it's contains. I also try to generate some docs with ddoc on my project and it seems it doesn't create any functions/methods entries if there is no description on

Re: [Font] Getting font folder on all platforms

2013-10-15 Thread Flamaros
On Friday, 6 September 2013 at 20:54:53 UTC, Flamaros wrote: On Friday, 6 September 2013 at 16:05:43 UTC, Tourist wrote: On Thursday, 5 September 2013 at 19:48:07 UTC, Flamaros wrote: I am searching the right way to find fonts folder for each platforms (Windows, linux, macOS X) On Windows

Re: Unable to use tradional tools to find memory leaks

2013-09-24 Thread Flamaros
On Tuesday, 24 September 2013 at 01:09:29 UTC, growler wrote: Might be related to or even the same issue reported here: http://forum.dlang.org/thread/bug-1005...@http.d.puremagic.com/issues/ This is a Valgrind issue though and not DMD related. It seems I had the same issue, but for Dr Memory

Re: Unable to use tradional tools to find memory leaks

2013-09-23 Thread Flamaros
On Monday, 23 September 2013 at 21:35:21 UTC, Flamaros wrote: On Monday, 23 September 2013 at 20:06:20 UTC, Flamaros wrote: On Saturday, 21 September 2013 at 14:30:19 UTC, Flamaros wrote: I tried to used Valgrind (Linux) and Dr Memory (Windows) without success to find a big leak I have in my

Re: Unable to use tradional tools to find memory leaks

2013-09-23 Thread Flamaros
On Monday, 23 September 2013 at 20:06:20 UTC, Flamaros wrote: On Saturday, 21 September 2013 at 14:30:19 UTC, Flamaros wrote: I tried to used Valgrind (Linux) and Dr Memory (Windows) without success to find a big leak I have in my application. But both tools can't launch my application wi

Re: Unable to use tradional tools to find memory leaks

2013-09-23 Thread Flamaros
On Saturday, 21 September 2013 at 14:30:19 UTC, Flamaros wrote: I tried to used Valgrind (Linux) and Dr Memory (Windows) without success to find a big leak I have in my application. But both tools can't launch my application without make it crash. Do I need do something particular, to h

Re: Unable to use tradional tools to find memory leaks

2013-09-21 Thread Flamaros
On Saturday, 21 September 2013 at 16:01:17 UTC, Maxim Fomin wrote: On Saturday, 21 September 2013 at 14:30:19 UTC, Flamaros wrote: I tried to used Valgrind (Linux) and Dr Memory (Windows) without success to find a big leak I have in my application. But both tools can't launch my applic

Unable to use tradional tools to find memory leaks

2013-09-21 Thread Flamaros
I tried to used Valgrind (Linux) and Dr Memory (Windows) without success to find a big leak I have in my application. But both tools can't launch my application without make it crash. Do I need do something particular, to have a chance to see one of those tool working fine with my application?

Re: [Font] Getting font folder on all platforms

2013-09-06 Thread Flamaros
On Friday, 6 September 2013 at 16:05:43 UTC, Tourist wrote: On Thursday, 5 September 2013 at 19:48:07 UTC, Flamaros wrote: I am searching the right way to find fonts folder for each platforms (Windows, linux, macOS X) On Windows it's generally "C:\Windows\Fonts" but a direc

Re: [Font] Getting font folder on all platforms

2013-09-05 Thread Flamaros
On Thursday, 5 September 2013 at 19:59:20 UTC, Justin Whear wrote: On Thu, 05 Sep 2013 21:48:03 +0200, Flamaros wrote: I am searching the right way to find fonts folder for each platforms (Windows, linux, macOS X) On Windows it's generally "C:\Windows\Fonts" but a direct acce

[Font] Getting font folder on all platforms

2013-09-05 Thread Flamaros
I am searching the right way to find fonts folder for each platforms (Windows, linux, macOS X) On Windows it's generally "C:\Windows\Fonts" but a direct access seems brutal, it's certainly expected to retrieve this path by using some register keys? Is someone know how it works for linux and/

Re: Iterate over a string to get unicode codes

2013-09-01 Thread Flamaros
On Sunday, 1 September 2013 at 14:11:54 UTC, Adam D. Ruppe wrote: On Sunday, 1 September 2013 at 14:07:00 UTC, Flamaros wrote: Is there a simple way to extract from a string all Unicode codes as uint values? string foo = "whatever"; foreach(dchar ch; foo) { // ch is the code poi

Iterate over a string to get unicode codes

2013-09-01 Thread Flamaros
Is there a simple way to extract from a string all Unicode codes as uint values?

Re: Nested class defined in another file

2013-06-04 Thread Flamaros
On Monday, 3 June 2013 at 22:39:39 UTC, Ali Çehreli wrote: On 06/03/2013 03:20 PM, Bruno Deligny wrote: > I began to separate them by hand by passing a parent reference but it's > ugly because i need to make the parent members accessible in public to > have acces. Is there any "friend" like in C

Re: Get difficulties with variadics

2013-05-12 Thread Flamaros
On Sunday, 12 May 2013 at 01:22:16 UTC, evilrat wrote: On Saturday, 11 May 2013 at 22:01:33 UTC, Flamaros wrote: Thanks a lot, I think using Variant[] is a better way. For the moment (maybe for few minutes) it's necessary to always give the Variant array to the getResource method, but i

Re: Get difficulties with variadics

2013-05-11 Thread Flamaros
On Saturday, 11 May 2013 at 13:40:15 UTC, evilrat wrote: On Saturday, 11 May 2013 at 13:00:42 UTC, Flamaros wrote: On Saturday, 11 May 2013 at 01:48:12 UTC, evilrat wrote: On Friday, 10 May 2013 at 21:11:57 UTC, Flamaros wrote: In the load(...) method I am getting filePath without issue

Re: Get difficulties with variadics

2013-05-11 Thread Flamaros
On Saturday, 11 May 2013 at 01:48:12 UTC, evilrat wrote: On Friday, 10 May 2013 at 21:11:57 UTC, Flamaros wrote: In the load(...) method I am getting filePath without issue, but for next parameters I am little confused on how to do. what all that stuff in ur load method? O_O look at my

Get difficulties with variadics

2013-05-10 Thread Flamaros
I am using a variadic function for a resource manager to be able to load resources with custom parameters. My problem is I don't get the second parameter correctly, i am expecting to retrieve a dynamic array. [CODE] class ResourceManager TgetResource(T : IResource)(string filePath, ..