Re: Anybody use Derelict FreeType recently (successfully)

2015-09-16 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 17 September 2015 at 04:58:05 UTC, WhatMeWorry wrote: Compiling and linking was error free, but when I hit DerelictFT.load(); my program aborts with the following run time message: derelict.util.exception.SymbolLoadException@source\derelict\util\exception.d(35): Failed to load s

Anybody use Derelict FreeType recently (successfully)

2015-09-16 Thread WhatMeWorry via Digitalmars-d-learn
Compiling and linking was error free, but when I hit DerelictFT.load(); my program aborts with the following run time message: derelict.util.exception.SymbolLoadException@source\derelict\util\exception.d(35): Failed to load symbol FT_Reference_Face from shared library freetype.dll First of a

Re: Runtime error when calling a callback in a parallel Task

2015-09-16 Thread BBasile via Digitalmars-d-learn
On Wednesday, 16 September 2015 at 22:30:26 UTC, Ali Çehreli wrote: On 09/16/2015 02:01 PM, BBasile wrote: > On Wednesday, 16 September 2015 at 18:19:07 UTC, Ali Çehreli wrote: >> On 09/15/2015 04:49 PM, BBasile wrote: >>> Under Windows this works fine but under Linux I got a runtime error. >> >>

Re: Runtime error when calling a callback in a parallel Task

2015-09-16 Thread Ali Çehreli via Digitalmars-d-learn
On 09/16/2015 02:01 PM, BBasile wrote: > On Wednesday, 16 September 2015 at 18:19:07 UTC, Ali Çehreli wrote: >> On 09/15/2015 04:49 PM, BBasile wrote: >>> Under Windows this works fine but under Linux I got a runtime error. >> >> Can it be because 'param' is invalid at the time clbck is called? >

Re: Best Direction on Spawning Process Async

2015-09-16 Thread cka via Digitalmars-d-learn
On Wednesday, 16 September 2015 at 16:30:46 UTC, Mike McKee wrote: This really shows the beauty and simplicity of the D language compared to C++. Check this out in Qt/C++: http://stackoverflow.com/questions/32593463/spawn-async-qprocess-from-dynamic-library-peek-output-until-done ...see how mu

Re: Runtime error when calling a callback in a parallel Task

2015-09-16 Thread BBasile via Digitalmars-d-learn
On Wednesday, 16 September 2015 at 18:19:07 UTC, Ali Çehreli wrote: On 09/15/2015 04:49 PM, BBasile wrote: Under Windows this works fine but under Linux I got a runtime error. Can it be because 'param' is invalid at the time clbck is called? No the callback and its user parameter are set at

Re: Load Qt UI XML File as GUI

2015-09-16 Thread Ali Çehreli via Digitalmars-d-learn
On 09/15/2015 09:36 PM, Steven Schveighoffer wrote: On 9/16/15 12:03 AM, Mike McKee wrote: Unfortunately, the http://dsource.org/forums/ doesn't appear to be active -- I can't login after I registered. This is where the QtD project has their forum. So, I'm asking this here. Seems to have moved

Re: Runtime error when calling a callback in a parallel Task

2015-09-16 Thread Ali Çehreli via Digitalmars-d-learn
On 09/15/2015 04:49 PM, BBasile wrote: Under Windows this works fine but under Linux I got a runtime error. Can it be because 'param' is invalid at the time clbck is called? The following program works under Linux. However, removing thread_joinAll() is a bug: import std.parallelism; import

Thrift

2015-09-16 Thread ddos via Digitalmars-d-learn
Looking for a RPC library, thrift looked promising, but i can't even compile the simple example given here https://thrift.apache.org/tutorial/d to compile i've 1. copied the thrift/lib/d/src/thrift folder to my source directory 2. copied the generated sources ( tutorial and share folder ) int

Re: Best Direction on Spawning Process Async

2015-09-16 Thread Mike McKee via Digitalmars-d-learn
This really shows the beauty and simplicity of the D language compared to C++. Check this out in Qt/C++: http://stackoverflow.com/questions/32593463/spawn-async-qprocess-from-dynamic-library-peek-output-until-done ...see how much nicer the D version is here that Ali did, versus the Qt/C++ tech

Re: Best Direction on Spawning Process Async

2015-09-16 Thread Mike McKee via Digitalmars-d-learn
Beautiful, Ali. Took me a bit to read here... http://dlang.org/phobos/std_concurrency.html ...but I realized that receiveTimeout() was a std.concurrency class method.

Re: Creating a DLL with a ActiveX interface.

2015-09-16 Thread Taylor Hillegeist via Digitalmars-d-learn
On Monday, 14 September 2015 at 16:59:20 UTC, Adam D. Ruppe wrote: On Monday, 14 September 2015 at 15:44:36 UTC, Taylor Hillegeist wrote: So, Actually I am using NI LabVIEW to interact with my DLL. I imagine even getting hold of of that would troublesome or expensive. Ah, all right. Here's a

Re: How do I change debug mode with dub?

2015-09-16 Thread Alex_Freeman via Digitalmars-d-learn
On Wednesday, 16 September 2015 at 12:04:38 UTC, Gary Willoughby wrote: On Wednesday, 16 September 2015 at 10:42:13 UTC, Alex_Freeman wrote: Hey all! I'm just wondering how to run dub with different debug versions, or running it with different versions generally? Is there also a way to have cod

Re: any way to initialize an array of structs to void?

2015-09-16 Thread ref2401 via Digitalmars-d-learn
On Wednesday, 16 September 2015 at 14:57:49 UTC, Meta wrote: In that case, you can use std.array.uninitializedArray or std.array.minimallyInitializedArray as needed. http://dlang.org/phobos/std_array.html#uninitializedArray http://dlang.org/phobos/std_array.html#.minimallyInitializedArray T

Re: any way to initialize an array of structs to void?

2015-09-16 Thread Meta via Digitalmars-d-learn
On Wednesday, 16 September 2015 at 14:51:51 UTC, ref2401 wrote: On Wednesday, 16 September 2015 at 14:48:59 UTC, Meta wrote: Don't do this with a dynamic array, though, as they work a bit differently from static arrays. Unfortunately I have to deal with dynamic arrays. In that case, you can

Re: any way to initialize an array of structs to void?

2015-09-16 Thread ref2401 via Digitalmars-d-learn
On Wednesday, 16 September 2015 at 14:48:59 UTC, Meta wrote: Don't do this with a dynamic array, though, as they work a bit differently from static arrays. Unfortunately I have to deal with dynamic arrays.

Re: No -v or -deps for gdc?

2015-09-16 Thread Atila Neves via Digitalmars-d-learn
On Tuesday, 15 September 2015 at 18:12:56 UTC, Johannes Pfau wrote: Am Tue, 15 Sep 2015 12:19:34 + schrieb Atila Neves : gdmd supports those options but gdc doesn't. Is that likely to always be the case? Atila gdmd is just a wrapper around gdc. If something is supported by gdmd it must

Re: any way to initialize an array of structs to void?

2015-09-16 Thread Meta via Digitalmars-d-learn
On Wednesday, 16 September 2015 at 14:45:06 UTC, ref2401 wrote: struct MyStruct { @disable this(); this(int a, string b) { this.a = a; this.b = b; } int a; string b; } I know there is a way to create one instance of `MyStr

Re: Another, is it a bug?

2015-09-16 Thread Meta via Digitalmars-d-learn
On Wednesday, 16 September 2015 at 14:08:11 UTC, Kagamin wrote: On Wednesday, 16 September 2015 at 13:18:51 UTC, Meta wrote: It's the exact same as in Java, and probably C# as well. I don't know if there's any OOP language that overloads methods between the base and super class. https://ideon

any way to initialize an array of structs to void?

2015-09-16 Thread ref2401 via Digitalmars-d-learn
struct MyStruct { @disable this(); this(int a, string b) { this.a = a; this.b = b; } int a; string b; } I know there is a way to create one instance of `MyStruct` and initialize it to void. MyStruct s = void; s = MySt

Re: Another, is it a bug?

2015-09-16 Thread Kagamin via Digitalmars-d-learn
On Wednesday, 16 September 2015 at 13:18:51 UTC, Meta wrote: It's the exact same as in Java, and probably C# as well. I don't know if there's any OOP language that overloads methods between the base and super class. https://ideone.com/En5JEc https://ideone.com/aIIrKM No, there's nothing like

Re: Another, is it a bug?

2015-09-16 Thread Meta via Digitalmars-d-learn
On Wednesday, 16 September 2015 at 03:48:59 UTC, Random D user wrote: Yeah... I guess I was expecting it to overload across class boundaries. I mean there's already a member eat in base class and sub class can't override that since it's got different parameters, and it's a function (can't be va

Re: "if sting in string"

2015-09-16 Thread John Colvin via Digitalmars-d-learn
On Wednesday, 16 September 2015 at 12:55:13 UTC, smadus wrote: Hello Searching after hours, i give up and here is the question. ;) I will make a programm, this searching all txt files on the system or the path from user and searching a user tiped term in this file. http://dpaste.dzfl.pl/dec

Re: "if sting in string"

2015-09-16 Thread smadus via Digitalmars-d-learn
A lot of thanks... i choose the (line.canFind(term)). No is not my first language, Python was my first, but i dont coding a long time...

Re: "if sting in string"

2015-09-16 Thread Rikki Cattermole via Digitalmars-d-learn
On 17/09/15 12:55 AM, smadus wrote: Hello Searching after hours, i give up and here is the question. ;) I will make a programm, this searching all txt files on the system or the path from user and searching a user tiped term in this file. http://dpaste.dzfl.pl/dec09a0f849c The Problem is in t

Re: "if sting in string"

2015-09-16 Thread cym13 via Digitalmars-d-learn
On Wednesday, 16 September 2015 at 12:55:13 UTC, smadus wrote: Hello Searching after hours, i give up and here is the question. ;) I will make a programm, this searching all txt files on the system or the path from user and searching a user tiped term in this file. http://dpaste.dzfl.pl/dec

"if sting in string"

2015-09-16 Thread smadus via Digitalmars-d-learn
Hello Searching after hours, i give up and here is the question. ;) I will make a programm, this searching all txt files on the system or the path from user and searching a user tiped term in this file. http://dpaste.dzfl.pl/dec09a0f849c The Problem is in the if() "line 17" i searching in

Re: How do I change debug mode with dub?

2015-09-16 Thread Gary Willoughby via Digitalmars-d-learn
On Wednesday, 16 September 2015 at 10:42:13 UTC, Alex_Freeman wrote: Hey all! I'm just wondering how to run dub with different debug versions, or running it with different versions generally? Is there also a way to have code behind multiple debug versions, or run more than one debug version at

Re: Final templated interface method not found

2015-09-16 Thread Andre via Digitalmars-d-learn
Thanks, it works like a charme. Kind regards André

How do I change debug mode with dub?

2015-09-16 Thread Alex_Freeman via Digitalmars-d-learn
Hey all! I'm just wondering how to run dub with different debug versions, or running it with different versions generally? Is there also a way to have code behind multiple debug versions, or run more than one debug version at once? Thanks!

Re: Why do abstract class functions require definitions?

2015-09-16 Thread Marc Schütz via Digitalmars-d-learn
On Wednesday, 16 September 2015 at 09:31:25 UTC, Jacob Carlborg wrote: On 2015-09-16 10:49, FiveNights wrote: Every so often I'll get a compiler error that isn't particularly clear on what's wrong and eventually I'll figure out that what's causing it is having a function in an abstract class so

Re: Why do abstract class functions require definitions?

2015-09-16 Thread Jacob Carlborg via Digitalmars-d-learn
On 2015-09-16 10:49, FiveNights wrote: Every so often I'll get a compiler error that isn't particularly clear on what's wrong and eventually I'll figure out that what's causing it is having a function in an abstract class somewhere that isn't defined: abstract class SomeClass { int someVari

Re: Re-named & Selective Imports

2015-09-16 Thread Kagamin via Digitalmars-d-learn
Well, arguably disjunctive combination doesn't make much sense here, because renamed import disambiguates it all enough, but makes it impossible to merge arbitrary namespaces ad hoc, a feature I missed several times.

Re: Why do abstract class functions require definitions?

2015-09-16 Thread Kagamin via Digitalmars-d-learn
declare as abstract void someFunction();

Re: Runtime error when calling a callback in a parallel Task

2015-09-16 Thread BBasile via Digitalmars-d-learn
On Tuesday, 15 September 2015 at 23:49:23 UTC, BBasile wrote: Under Windows this works fine but under Linux I got a runtime error. this could be reduced to : [...] If it can help to understand the problem, here is the unreducted case: https://github.com/BBasile/Coedit/blob/master/cedast/src/

Why do abstract class functions require definitions?

2015-09-16 Thread FiveNights via Digitalmars-d-learn
Every so often I'll get a compiler error that isn't particularly clear on what's wrong and eventually I'll figure out that what's causing it is having a function in an abstract class somewhere that isn't defined: abstract class SomeClass { int someVariable; void someFunction(); } the s

Re: What kind of sorcery is that?

2015-09-16 Thread John Colvin via Digitalmars-d-learn
On Wednesday, 16 September 2015 at 08:28:24 UTC, NX wrote: import std.stdio; void main() { Stuff!(Thing!float) s; writeln(typeid(s.var)); writeln(typeid(s.var.varling)); writeln(typeid(s)); } class Stuff(T) { T!int var; } class Thing(T) { T varling;

What kind of sorcery is that?

2015-09-16 Thread NX via Digitalmars-d-learn
import std.stdio; void main() { Stuff!(Thing!float) s; writeln(typeid(s.var)); writeln(typeid(s.var.varling)); writeln(typeid(s)); } class Stuff(T) { T!int var; } class Thing(T) { T varling; }

Re: Initalizing complex array types or some other problem ;/

2015-09-16 Thread Andrea Fontana via Digitalmars-d-learn
On Wednesday, 16 September 2015 at 01:46:09 UTC, Prudence wrote: In any case, Maybe you are not as smart as you think you are if you can't understand it? Maybe next time you shouldn't assume you are the oracle of all knowledge and if you can't understand it then it's bad/wrong. In fact, it's

Re: Best Direction on Spawning Process Async

2015-09-16 Thread Ali Çehreli via Digitalmars-d-learn
On 09/15/2015 09:21 PM, Mike McKee wrote: What's the best direction from... http://dlang.org/phobos/std_process.html ...on spawning an async process and then peeking at it occasionally as it runs, and then get notified when it finishes? In other words, what std.process functions would you recom