QWebView requesting QtE5WebEng32.so on windows
So I went to try out QWebView on Windows from this wrapper: https://github.com/MGWL/QtE5 all the examples went fine until I tried QWebView: https://github.com/MGWL/QtE5/blob/master/examples/webview.d I compile using this command line: dmd -m32 webview.d qte5.d -oflol but when I run I get this error: Error load: QtE5WebEng32.so I thought this was just a typo and what he really meant was QtE5WebEng32.dll but even so, I can't find such dll even using windeployqt --webkit2 --release Is the library's author around so that we can fix this?
Re: Trying to use the libclang Dub package
On Friday, 20 July 2018 at 14:03:20 UTC, bachmeier wrote: Yeah, I didn't need the symlink on a different machine with Ubuntu 18.04. After some digging around, I found that I had libclang1-3.9, libclang-dev, and libclang-common-3.9-dev installed. libclang1-3.9 installs libclang.so.1. The one I was missing was libclang-3.9-dev. It's confusing and I think this could be handled better by the distro. But this is also one of the reasons I'm not a fan of dub. The user is left to sort through these dependencies themselves, and that means it's really not suitable for packages that link to C code (which is most of what I do). One of the main selling points of D is its C interoperability, but a lot of new users would walk away rather than trying to figure this out, concluding that D is buggy. I don't think it's confusing, you will also need to install the development package if you are coding something in C. It's the same, except for the language being D instead of C. As D is advertised as a systems programming language, this doesn't seem confusing (to me, at least). If a dub package uses a system library though, it can be hinted at by the `systemDependencies` key in `dub.json`/`dub.sdl`. The problem is, I don't think many packages actually use it and I agree that since it's too easy to overlook it, you're often left to figure everything out. It's not something you're likely to find out unless you are already looking for it.
Re: Template variable not reach at compile
On Saturday, 21 July 2018 at 13:13:11 UTC, Mike Parker wrote: On Saturday, 21 July 2018 at 12:17:54 UTC, Greatsam4sure wrote: Sorry for the typo. This is the problem auto arithmetic(T, V, U)(T a, V b, U op){ return mixin("a"~op~"b"); } //call like this arithmetic(1.5,2.5,"+"); Compiler says the variable op is not reach at compile time. So how can the varible a and b be reach at compile time and op is not reach. I will appreciate any help. I have also use a static if but the same complain. Just a newbie in D You aren't using a or b at compile time -- you're using the string literals "a" and "b", which have nothing at all to do with a and b. In order to get what you want, you need to make op a template parameter like this: auto arithmetic(string op, T, V)(T a, V b) { mixin("a"~op~"b"); } arithmetic!("+")(1.5, 2.5); Thanks Sir. Really appreciate your reply it works for me. I also want to thank you for all your labour in the dlang ecosystem or foundation. I read about the dlang announce group every day. I will also want update to dlang this week or close it down or redirect to the announce group directly
Re: Is there any plan for a dependency-free subset of "core" runtime?
On Friday, 20 July 2018 at 16:37:24 UTC, Seb wrote: On Friday, 20 July 2018 at 15:33:19 UTC, Radu wrote: On Thursday, 19 July 2018 at 18:16:17 UTC, kinke wrote: I'll go with Seb's suggestion and look at the betterC tests upstream for issues like this. FYI: I made a reboot of the old PR to a new one which just adds the betterC testsuite: https://github.com/dlang/phobos/pull/6640 You can now start to add your -betterC tests directly to Phobos: https://github.com/dlang/phobos/tree/master/test/betterC make -f posix.mak betterC We probably should support sth. like a `@test-betterc` (or @betterc-test`) UDA with which we can annotate existing tests that would then get extracted from Phobos automatically.
Re: Template variable not reach at compile
On Saturday, 21 July 2018 at 12:17:54 UTC, Greatsam4sure wrote: Sorry for the typo. This is the problem auto arithmetic(T, V, U)(T a, V b, U op){ return mixin("a"~op~"b"); } //call like this arithmetic(1.5,2.5,"+"); Compiler says the variable op is not reach at compile time. So how can the varible a and b be reach at compile time and op is not reach. I will appreciate any help. I have also use a static if but the same complain. Just a newbie in D You aren't using a or b at compile time -- you're using the string literals "a" and "b", which have nothing at all to do with a and b. In order to get what you want, you need to make op a template parameter like this: auto arithmetic(string op, T, V)(T a, V b) { mixin("a"~op~"b"); } arithmetic!("+")(1.5, 2.5);
Re: Template variable not reach at compile
On 22/07/2018 12:15 AM, Greatsam4sure wrote: auto arithmetic(T, V, U)(T a, V b, U op){ return mixin("a"~op~"b"); } //call like this arithmetic(1.5,2.5,"op"); Compiler says the variable op is not reach at compile time. So how can the varible a and b be reach at compile time and op is not reach. I will appreciate any help. I have also use a static if but the same complain. Just a newbie in D Simple, it was never requested to be reached. The correct code is: auto arithmetic(string op, T, V)(T a, V b) { return mixin("a" ~ op ~ "b"); } arithmetic!("op")(1.5, 2.5); D is not dynamic, if you need access to compile time features like string mixin, you must pass them via the template parameters. You can't use regular old variables to do this, as the code hasn't even been generated yet.
Template variable not reach at compile
Sorry for the typo. This is the problem auto arithmetic(T, V, U)(T a, V b, U op){ return mixin("a"~op~"b"); } //call like this arithmetic(1.5,2.5,"+"); Compiler says the variable op is not reach at compile time. So how can the varible a and b be reach at compile time and op is not reach. I will appreciate any help. I have also use a static if but the same complain. Just a newbie in D
Template variable not reach at compile
auto arithmetic(T, V, U)(T a, V b, U op){ return mixin("a"~op~"b"); } //call like this arithmetic(1.5,2.5,"op"); Compiler says the variable op is not reach at compile time. So how can the varible a and b be reach at compile time and op is not reach. I will appreciate any help. I have also use a static if but the same complain. Just a newbie in D