D2H

2018-08-01 Thread Everlast via Digitalmars-d-learn
Is there any program that can take a D file and essentially make an H file for other programs to import for dll work? I want to create the DLL's in D rather than C++ and would like to generate the H file from the D file.

Re: Gui framework

2018-08-01 Thread Daniel Kozak via Digitalmars-d-learn
I am using gtkd and is really nice, but AFAIK it does not have native looking on windows yet On Wed, Aug 1, 2018 at 5:30 PM Greatsam4sure via Digitalmars-d-learn < digitalmars-d-learn@puremagic.com> wrote: > Please help me recommend a gui toolkit for dlang, that has the > following > * work

pointer cast from const(Y) to immutable(void*)** is not supported at compile time

2018-08-01 Thread Hakan Aras via Digitalmars-d-learn
Why does the following work in DMD 2.080 and LDC 1.10, but not in DMD 2.081 and LDC 1.11 beta: https://run.dlang.io/is/dSVruv And is there a way to enforce the cast like a static_cast in C++?

Re: Is there a way to anonymously execute some sh script contents?

2018-08-01 Thread Gary Willoughby via Digitalmars-d-learn
On Wednesday, 1 August 2018 at 14:58:56 UTC, Ky-Anh Huynh wrote: This works well with user interaction. However I don't really like the idea of using temporary files. Is there any better way? Maybe take a look at: https://dlang.org/library/std/process/pipe_shell.html

Is there a way to anonymously execute some sh script contents?

2018-08-01 Thread Ky-Anh Huynh via Digitalmars-d-learn
Hi, I have some big shell script that may require user input. Using `pipeProcess` doesn't work as `pipe` doesn't allow user to provide custom input (FIXME). I am creating some temporary files, put the script contents to that file and then invoke [code] spawnProcess([/path/to/shell,

Re: D2H

2018-08-01 Thread Everlast via Digitalmars-d-learn
On Wednesday, 1 August 2018 at 15:48:27 UTC, Everlast wrote: Is there any program that can take a D file and essentially make an H file for other programs to import for dll work? I want to create the DLL's in D rather than C++ and would like to generate the H file from the D file. Also,

Re: Small program producing binary with large filesize

2018-08-01 Thread Jacob Shtokolov via Digitalmars-d-learn
On Tuesday, 31 July 2018 at 15:19:19 UTC, Dan Barbarito wrote: Hi all, I am starting to write a command line tool. Hi! First, Vibe.d will increase your binary size because it contains a lot of unnecessary things inside it. So instead of using the entire vibe.d library, you may point dub to

Re: Small program producing binary with large filesize

2018-08-01 Thread Dan Barbarito via Digitalmars-d-learn
Thank you for all of the great answers, everyone!

Re: Disabling opAssign in a type disabled all the opAssigns of an aliased type?

2018-08-01 Thread Simen Kjærås via Digitalmars-d-learn
On Tuesday, 31 July 2018 at 20:40:25 UTC, Steven Schveighoffer wrote: OK, so one thing to learn in D, you can't hijack stuff. When you override a function, you have to override ALL the overloads. I could have sworn I tested this before I wrote that it's a bug: struct A { void fun(int) {}

Re: Why does not UFCS work for method defined inside unittest block?

2018-08-01 Thread Ky-Anh Huynh via Digitalmars-d-learn
On Tuesday, 31 July 2018 at 08:42:28 UTC, Simen Kjærås wrote: From https://dlang.org/spec/function.html#pseudo-member: "A free function can be called with a syntax that looks as if the function were a member function of its first parameter type." [...] Thanks a lot Simen :)

Re: Gui framework

2018-08-01 Thread Jacob Carlborg via Digitalmars-d-learn
On 2018-08-01 17:28, Greatsam4sure wrote: Please help me recommend a gui toolkit for dlang, that has the following * work well on windows *look native on windows *support css styling like adobe flex spark toolkit and javafx *Support theming and skinning *support custom chrome. That is easily

Re: D2H

2018-08-01 Thread Everlast via Digitalmars-d-learn
On Wednesday, 1 August 2018 at 15:55:28 UTC, Everlast wrote: On Wednesday, 1 August 2018 at 15:48:27 UTC, Everlast wrote: Is there any program that can take a D file and essentially make an H file for other programs to import for dll work? I want to create the DLL's in D rather than C++ and

Re: Gui framework

2018-08-01 Thread Andre Pany via Digitalmars-d-learn
On Wednesday, 1 August 2018 at 15:28:32 UTC, Greatsam4sure wrote: Please help me recommend a gui toolkit for dlang, that has the following * work well on windows *look native on windows *support css styling like adobe flex spark toolkit and javafx *Support theming and skinning *support custom

Re: Gui framework

2018-08-01 Thread Andre Pany via Digitalmars-d-learn
On Wednesday, 1 August 2018 at 18:40:26 UTC, Everlast wrote: On Wednesday, 1 August 2018 at 17:24:23 UTC, Andre Pany wrote: On Wednesday, 1 August 2018 at 15:28:32 UTC, Greatsam4sure wrote: Please help me recommend a gui toolkit for dlang, that has the following * work well on windows *look

Re: D2H

2018-08-01 Thread Everlast via Digitalmars-d-learn
On Wednesday, 1 August 2018 at 17:01:28 UTC, Everlast wrote: On Wednesday, 1 August 2018 at 15:55:28 UTC, Everlast wrote: On Wednesday, 1 August 2018 at 15:48:27 UTC, Everlast wrote: Is there any program that can take a D file and essentially make an H file for other programs to import for dll

Re: Gui framework

2018-08-01 Thread Everlast via Digitalmars-d-learn
On Wednesday, 1 August 2018 at 17:24:23 UTC, Andre Pany wrote: On Wednesday, 1 August 2018 at 15:28:32 UTC, Greatsam4sure wrote: Please help me recommend a gui toolkit for dlang, that has the following * work well on windows *look native on windows *support css styling like adobe flex spark

Gui framework

2018-08-01 Thread Greatsam4sure via Digitalmars-d-learn
Please help me recommend a gui toolkit for dlang, the has the following * work well on windows *look native on windows *support css styling like adobe flex spark toolkit and javafx *support custom chrome. That is easily customizable. *Integrate well with dlang. *Has fairly OK tutorials I

Gui framework

2018-08-01 Thread Greatsam4sure via Digitalmars-d-learn
Please help me recommend a gui toolkit for dlang, that has the following * work well on windows *look native on windows *support css styling like adobe flex spark toolkit and javafx *Support theming and skinning *support custom chrome. That is easily customizable. *Integrate well with dlang.

Gui framework

2018-08-01 Thread Greatsam4sure via Digitalmars-d-learn
Please help me recommend a gui toolkit for slang, the has the following * work well on windows *look native on windows *support css styling like adobe flex spark toolkit and javafx *support custom chrome. That is easily customizable. *Integrate well with dlang. *Has fairly OK tutorials I

Re: pointer cast from const(Y) to immutable(void*)** is not supported at compile time

2018-08-01 Thread Hakan Aras via Digitalmars-d-learn
On Wednesday, 1 August 2018 at 16:25:28 UTC, Hakan Aras wrote: https://run.dlang.io/is/dSVruv Whoops, that was the wrong one. It's fixed now.

How to force console

2018-08-01 Thread Everlast via Digitalmars-d-learn
I can create a console for a dll using AllocConsole and special Write functions but this is a pain. How do I get all standard input and output to either use this console or for the app to create the console automatically? The problem I'm having is that I can write(using custom write) but

Re: pointer cast from const(Y) to immutable(void*)** is not supported at compile time

2018-08-01 Thread Hakan Aras via Digitalmars-d-learn
On Thursday, 2 August 2018 at 01:39:58 UTC, Nicholas Wilson wrote: https://issues.dlang.org/show_bug.cgi?id=19134 I wasn't quite sure whether it's a bug since it happens in both compilers. Thanks for opening the issue. As a workaround remove static, as that causes y to be initialised at

Re: Where is TypeInfo_Class.m_init set

2018-08-01 Thread Hakan Aras via Digitalmars-d-learn
On Tuesday, 31 July 2018 at 20:45:11 UTC, kinke wrote: Sorry, scratch that, I forgot the `extern` before the dummy global. After fixing that, I didn't quickly find a solution for referencing the symbol in the .data.rel.ro section (LLVM asm, e.g., `void* getInit() { return __asm!(void*)("movq

Re: pointer cast from const(Y) to immutable(void*)** is not supported at compile time

2018-08-01 Thread Nicholas Wilson via Digitalmars-d-learn
On Wednesday, 1 August 2018 at 20:10:44 UTC, Hakan Aras wrote: On Wednesday, 1 August 2018 at 16:25:28 UTC, Hakan Aras wrote: https://run.dlang.io/is/dSVruv Whoops, that was the wrong one. It's fixed now. https://issues.dlang.org/show_bug.cgi?id=19134 As a workaround remove static, as

Re: pointer cast from const(Y) to immutable(void*)** is not supported at compile time

2018-08-01 Thread Nicholas Wilson via Digitalmars-d-learn
On Thursday, 2 August 2018 at 02:13:41 UTC, Hakan Aras wrote: On Thursday, 2 August 2018 at 01:39:58 UTC, Nicholas Wilson wrote: https://issues.dlang.org/show_bug.cgi?id=19134 I wasn't quite sure whether it's a bug since it happens in both compilers. Thanks for opening the issue. For

Re: How to force console

2018-08-01 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 1 August 2018 at 20:57:30 UTC, Everlast wrote: I can create a console for a dll using AllocConsole and special Write functions but this is a pain. How do I get all standard input and output to either use this console or for the app to create the console automatically? The