Re: Visual Studio Code code-d serve-d beta release

2017-08-05 Thread Dmitry via Digitalmars-d-announce
On Saturday, 5 August 2017 at 22:43:31 UTC, WebFreak001 wrote: try out the new version please uninstall code-d and install code-d-beta (https://marketplace.visualstudio.com/items?itemName=webfreak.code-d-beta, it's version 0.16.1) and just try to use it. Failed to install serve-d (Error code

Re: How do you use D?

2017-08-05 Thread Laeeth Isharc via Digitalmars-d
On Friday, 28 July 2017 at 14:58:01 UTC, Ali wrote: While the Orgs using D page is very nice ... I hoping to hear more personal stories ... So How do you use D? In work, (key projects or smaller side projects) in your side project, (github, links please) just to learn something new? (I would

Re: returning D string from C++?

2017-08-05 Thread Marco Leise via Digitalmars-d-learn
Am Sat, 05 Aug 2017 20:17:23 + schrieb bitwise : > virtual DString getTitle() const { > DString ret; > ret.length = GetWindowTextLength(_hwnd) + 1; > ret.ptr = (const char*)gc_malloc(ret.length, 0xA, NULL); > GetWindowText(_hwnd,

Re: newCTFE Status August 2017

2017-08-05 Thread Stefan Koch via Digitalmars-d
On Tuesday, 1 August 2017 at 21:27:32 UTC, Stefan Koch wrote: [ ... ] I am quite surprised. newCTFE comes far enough now, that it tries to interpret it's own interpreter (which is CTFEable) Of course it fails in doing so since we do not yet handle newing arrays or associative arrays.

Re: d_to_html.d

2017-08-05 Thread Meta via Digitalmars-d-announce
On Saturday, 5 August 2017 at 19:07:50 UTC, WebFreak001 wrote: Hi, I made a D to HTML generator which is basically diet, but fully using the D compiler as generator and not some complicated parser, etc. Here an example what you pass in: string page = html( head(

Re: How do you use D?

2017-08-05 Thread jmh530 via Digitalmars-d
On Sunday, 6 August 2017 at 03:30:00 UTC, Laeeth Isharc wrote: I've suggested exactly the same "easy-to-learn super-powered stronly-typed javascript" and "efficient web server development" advertising approachs to the D leadership, using a more "Python.org"-like website. [snip] Good

Re: Visual Studio Code code-d serve-d beta release

2017-08-05 Thread Neia Neutuladh via Digitalmars-d-announce
On Saturday, 5 August 2017 at 22:43:31 UTC, WebFreak001 wrote: I just released a beta version on the visual studio marketplace that allows you to try out the latest features of serve-d. Awesome! Once I worked around the binary placement issue, this actually gave me completion options, which

Re: How do you use D?

2017-08-05 Thread Laeeth Isharc via Digitalmars-d
On Saturday, 5 August 2017 at 21:31:49 UTC, Ecstatic Coder wrote: It is more about marketing. Maybe Go is not a perfect language, maybe not even a good one, but it's sold so good because of a good marketing So, calling D a "better C++" is a bad advertisement. But if you rename it to

Re: Visual D no bp's on x64

2017-08-05 Thread FoxyBrown via Digitalmars-d-debugger
On Sunday, 6 August 2017 at 03:12:22 UTC, FoxyBrown wrote: On Thursday, 3 August 2017 at 20:22:56 UTC, Johnson Jones wrote: On Thursday, 3 August 2017 at 07:06:06 UTC, Rainer Schuetze wrote: [...] Thanks! Seems to be working. well, in x86 I still get a few BP's that won't be hit every

Re: Create class on stack

2017-08-05 Thread FoxyBrown via Digitalmars-d-learn
On Sunday, 6 August 2017 at 02:32:05 UTC, Adam D. Ruppe wrote: On Sunday, 6 August 2017 at 02:19:19 UTC, FoxyBrown wrote: Also, does it do the allocation at compile time(reserve space on the stack for the variable along with all the others or does it "allocate" space on the stack at

Re: Netflix opensources its first D library: Vectorflow

2017-08-05 Thread Joakim via Digitalmars-d-announce
On Wednesday, 2 August 2017 at 22:56:32 UTC, Joakim wrote: On Wednesday, 2 August 2017 at 21:31:19 UTC, Walter Bright wrote: https://www.reddit.com/r/programming/comments/6r6dwp/netflix_opensources_its_first_d_library_vectorflow/ No. 2 liked proggit link of the day, should be no. 1 soon:

Re: SVD_to_D: Generate over 100k lines of highly-optimized microcontroller mmapped-IO code in the blink of an eye

2017-08-05 Thread Mike via Digitalmars-d-announce
On Saturday, 5 August 2017 at 20:08:39 UTC, WebFreak001 wrote: I just clicked through some random files in the example folder, this line seems broken: https://github.com/JinShil/svd_to_d/blob/master/examples/atsamd21g18a/AC.d#L13 Fixed. Thanks!

Re: Create class on stack

2017-08-05 Thread Adam D. Ruppe via Digitalmars-d-learn
On Sunday, 6 August 2017 at 02:19:19 UTC, FoxyBrown wrote: Also, does it do the allocation at compile time(reserve space on the stack for the variable along with all the others or does it "allocate" space on the stack at runtime?... which is slightly slower). compile time. It works like a

Re: Create class on stack

2017-08-05 Thread FoxyBrown via Digitalmars-d-learn
On Sunday, 6 August 2017 at 02:10:31 UTC, Moritz Maxeiner wrote: On Sunday, 6 August 2017 at 01:18:50 UTC, Johnson Jones wrote: On Saturday, 5 August 2017 at 23:09:09 UTC, Moritz Maxeiner wrote: On Saturday, 5 August 2017 at 17:08:32 UTC, Johnson Jones wrote: using gtk, it has a type called

Re: Did dmd forget how to read?

2017-08-05 Thread Johnson Jones via Digitalmars-d
On Sunday, 6 August 2017 at 00:22:45 UTC, Cym13 wrote: On Saturday, 5 August 2017 at 23:54:45 UTC, Johnson Jones wrote: main.d(157): Error: no property 'SetCursor' for type 'gdk.Window.Window', did you mean 'getCursor'? um... anyone see bug? It's there, I promise. "setCursor" exists, but

Re: Create class on stack

2017-08-05 Thread Moritz Maxeiner via Digitalmars-d-learn
On Sunday, 6 August 2017 at 01:18:50 UTC, Johnson Jones wrote: On Saturday, 5 August 2017 at 23:09:09 UTC, Moritz Maxeiner wrote: On Saturday, 5 August 2017 at 17:08:32 UTC, Johnson Jones wrote: using gtk, it has a type called value. One has to use it to get the value of stuff but it is a

Re: Visual Studio Code code-d serve-d beta release

2017-08-05 Thread Soulsbane via Digitalmars-d-announce
On Saturday, 5 August 2017 at 22:43:31 UTC, WebFreak001 wrote: You might remember the blog post from a while back about workspace-d and serve-d, I just released a beta version on the visual studio marketplace that allows you to try out the latest features of serve-d. Note that this version

gtkD: events being triggered twice

2017-08-05 Thread Johnson Jones via Digitalmars-d-learn
GtkEventBox - Enter GtkEventBox - Enter Down GtkEventBox - Leave Up GtkEventBox - Leave GtkEventBox - Leave That is when I move the mouse over the event box then click then move out out then release. I would expect Enter Down Leave Up The fact that enter and leave are not paired equally is

Re: Create class on stack

2017-08-05 Thread Johnson Jones via Digitalmars-d-learn
On Saturday, 5 August 2017 at 23:09:09 UTC, Moritz Maxeiner wrote: On Saturday, 5 August 2017 at 17:08:32 UTC, Johnson Jones wrote: using gtk, it has a type called value. One has to use it to get the value of stuff but it is a class. Once it is used, one doesn't need it. Ideally I'd like to

[Issue 16474] CTFE pow

2017-08-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16474 ki...@gmx.net changed: What|Removed |Added CC||ki...@gmx.net --- Comment #11 from

Re: d_to_html.d

2017-08-05 Thread David Gileadi via Digitalmars-d-announce
On 8/5/17 12:07 PM, WebFreak001 wrote: Hi, I made a D to HTML generator which is basically diet, but fully using the D compiler as generator and not some complicated parser, etc. [snip] That is amazing! I can't decide whether it's the best thing I've ever seen or a horrible hack, but it's a

Re: Did dmd forget how to read?

2017-08-05 Thread Cym13 via Digitalmars-d
On Saturday, 5 August 2017 at 23:54:45 UTC, Johnson Jones wrote: main.d(157): Error: no property 'SetCursor' for type 'gdk.Window.Window', did you mean 'getCursor'? um... anyone see bug? It's there, I promise. "setCursor" exists, but "SetCursor" doesn't (or your "bug" depends on code that

[Issue 16191] std/digest/digest.d should be renamed to package.d

2017-08-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16191 Vladimir Panteleev changed: What|Removed |Added See Also|

[Issue 17724] digest is not a template declaration, it is a module

2017-08-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17724 Vladimir Panteleev changed: What|Removed |Added See Also|

[Issue 17724] New: digest is not a template declaration, it is a module

2017-08-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17724 Issue ID: 17724 Summary: digest is not a template declaration, it is a module Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: regression

Did dmd forget how to read?

2017-08-05 Thread Johnson Jones via Digitalmars-d
main.d(157): Error: no property 'SetCursor' for type 'gdk.Window.Window', did you mean 'getCursor'? um... anyone see bug? It's there, I promise.

[Issue 16474] CTFE pow

2017-08-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16474 --- Comment #10 from uplink.co...@googlemail.com --- (In reply to kinke from comment #9) > > So how does newCTFE interact with CTFloat at the moment? This is an > important piece for cross-compilers. And is there an estimate for when > newCTFE will

Re: Getting enum from value

2017-08-05 Thread Kreikey via Digitalmars-d-learn
On Saturday, 5 August 2017 at 20:11:27 UTC, Matthew Remmel wrote: On Saturday, 5 August 2017 at 18:26:10 UTC, Kreikey wrote: On Saturday, 5 August 2017 at 15:33:57 UTC, Matthew Remmel I'm annoyed that I didn't think of trying to cast it. That works great if the value exists in the enum. It

Re: Create class on stack

2017-08-05 Thread Moritz Maxeiner via Digitalmars-d-learn
On Saturday, 5 August 2017 at 17:08:32 UTC, Johnson Jones wrote: using gtk, it has a type called value. One has to use it to get the value of stuff but it is a class. Once it is used, one doesn't need it. Ideally I'd like to treat it as a struct since I'm using it in a delegate I would like

Re: newCTFE Status August 2017

2017-08-05 Thread Stefan Koch via Digitalmars-d
On Tuesday, 1 August 2017 at 21:27:32 UTC, Stefan Koch wrote: [ ... ] The following code does now compile with newCTFE, and it's a little faster then the old interpreter. Not much though since that is not a pathological case. pure nothrow @nogc @safe uint[256][8] genTables32(uint

[Issue 16474] CTFE pow

2017-08-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16474 --- Comment #9 from ki...@gmx.net --- (In reply to uplink.coder from comment #7) > (In reply to ZombineDev from comment #6) > > Manu, you may be interested in trying LDC as it will soon support much more > > intrinsics at CTFE than dmd. For

[Issue 16474] CTFE pow

2017-08-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16474 --- Comment #8 from ZombineDev --- I don't think so, but see the PR for yourself ;) --

Re: Please document packages/libraries before putting them on dub registry

2017-08-05 Thread solidstate1991 via Digitalmars-d
On Saturday, 5 August 2017 at 00:08:29 UTC, aberba wrote: Those packages without documentation might be useful but no one except you will use it because only you know how and what it does. We spend hours writing code but can't spend minutes getting people to use them. Intro Purpose Usage ...

Re: Who maintains the D website?

2017-08-05 Thread Ecstatic Coder via Digitalmars-d
On Thursday, 3 August 2017 at 00:18:38 UTC, Andrej Mitrovic wrote: Is there a single person who's the main maintainer of the D website..? If not, I have some ideas on how to improve it. Not just ideas, I'd like to give a host at improving it myself, really. Have a look at "python.org". 2nd

[Issue 16474] CTFE pow

2017-08-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16474 --- Comment #7 from uplink.co...@googlemail.com --- (In reply to ZombineDev from comment #6) > Manu, you may be interested in trying LDC as it will soon support much more > intrinsics at CTFE than dmd. For reference: >

Re: How do you use D?

2017-08-05 Thread Ecstatic Coder via Digitalmars-d
It is more about marketing. Maybe Go is not a perfect language, maybe not even a good one, but it's sold so good because of a good marketing So, calling D a "better C++" is a bad advertisement. But if you rename it to 'Script', for example "DatScript" and sell it as "better, statically typed

Re: returning D string from C++?

2017-08-05 Thread Jeremy DeHaan via Digitalmars-d-learn
On Saturday, 5 August 2017 at 20:17:23 UTC, bitwise wrote: I have a Windows native window class in C++, and I need a function to return the window title. [...] As long as you have a reachable reference to the GC memory SOMEWHERE, the GC won't reclaim it. It doesn't have to be on the stack

[Issue 16474] CTFE pow

2017-08-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16474 ZombineDev changed: What|Removed |Added CC|

Re: gtkD load images

2017-08-05 Thread ag0aep6g via Digitalmars-d-learn
On 08/05/2017 10:30 PM, Mike Wey wrote: On 05-08-17 15:23, Johnson Jones wrote: On Saturday, 5 August 2017 at 12:51:13 UTC, Mike Wey wrote: [...] There are two issues here, you need to properly escape the slash: "C:a.jpg". [...] ``` Pixbuf p = new Pixbuf(r"C:\\a.jpg"); ``` Thanks. Why

Re: gtkD window centering message up and no app on taskbar

2017-08-05 Thread Mike Wey via Digitalmars-d-learn
On 05-08-17 20:14, Johnson Jones wrote: When trying to center the window. If one uses ALWAYS_CENTERED any resizing of the window is totally busted. CENTER also does not work. move(0,0) seems to not be relative to the main display. I'd basically like to center the window on the main display or

Re: gtkD load images

2017-08-05 Thread Mike Wey via Digitalmars-d-learn
On 05-08-17 15:23, Johnson Jones wrote: On Saturday, 5 August 2017 at 12:51:13 UTC, Mike Wey wrote: On 03-08-17 21:56, Johnson Jones wrote: If I do something like import gdkpixbuf.Pixbuf; Pixbuf.newFromResource("C:\\a.jpg"); There are two issues here, you need to properly escape the slash:

Re: Create class on stack

2017-08-05 Thread angel via Digitalmars-d-learn
On Saturday, 5 August 2017 at 17:08:32 UTC, Johnson Jones wrote: using gtk, it has a type called value. One has to use it to get the value of stuff but it is a class. Once it is used, one doesn't need it. Ideally I'd like to treat it as a struct since I'm using it in a delegate I would like

returning D string from C++?

2017-08-05 Thread bitwise via Digitalmars-d-learn
I have a Windows native window class in C++, and I need a function to return the window title. So in D, I have this: // isn't D's ABI stable enough to just return this from C++ // and call it a string in the extern(C++) interface? anyways.. struct DString { size_t length;

Re: Getting enum from value

2017-08-05 Thread Matthew Remmel via Digitalmars-d-learn
On Saturday, 5 August 2017 at 18:26:10 UTC, Kreikey wrote: On Saturday, 5 August 2017 at 15:33:57 UTC, Matthew Remmel wrote: I feel like I'm missing something, but there has to be an easier way to convert a value into an enum than switching over every possible value: i.e [...] Capitals c =

Re: lambda function with "capture by value"

2017-08-05 Thread Temtaime via Digitalmars-d-learn
On Saturday, 5 August 2017 at 19:19:06 UTC, Simon Bürger wrote: On Saturday, 5 August 2017 at 18:54:22 UTC, ikod wrote: Maybe std.functional.partial can help you. Nope. int i = 1; alias dg = partial!(writeln, i); i = 2; dg(); still prints '2' as it should

Re: lambda function with "capture by value"

2017-08-05 Thread Simon Bürger via Digitalmars-d-learn
On Saturday, 5 August 2017 at 18:54:22 UTC, ikod wrote: Maybe std.functional.partial can help you. Nope. int i = 1; alias dg = partial!(writeln, i); i = 2; dg(); still prints '2' as it should because 'partial' takes 'i' as a symbol, which is - for this

d_to_html.d

2017-08-05 Thread WebFreak001 via Digitalmars-d-announce
Hi, I made a D to HTML generator which is basically diet, but fully using the D compiler as generator and not some complicated parser, etc. Here an example what you pass in: string page = html( head( title("wtf is this"), style(

Re: lambda function with "capture by value"

2017-08-05 Thread Simon Bürger via Digitalmars-d-learn
On Saturday, 5 August 2017 at 18:54:22 UTC, ikod wrote: On Saturday, 5 August 2017 at 18:45:34 UTC, Simon Bürger wrote: On Saturday, 5 August 2017 at 18:22:38 UTC, Stefan Koch wrote: [...] No, sometimes I want i to be the value it has at the time the delegate was defined. My actual usecase

Re: lambda function with "capture by value"

2017-08-05 Thread ikod via Digitalmars-d-learn
On Saturday, 5 August 2017 at 18:45:34 UTC, Simon Bürger wrote: On Saturday, 5 August 2017 at 18:22:38 UTC, Stefan Koch wrote: [...] No, sometimes I want i to be the value it has at the time the delegate was defined. My actual usecase was more like this: void delegate()[3] dgs;

Re: lambda function with "capture by value"

2017-08-05 Thread Simon Bürger via Digitalmars-d-learn
On Saturday, 5 August 2017 at 18:22:38 UTC, Stefan Koch wrote: On Saturday, 5 August 2017 at 18:19:05 UTC, Stefan Koch wrote: On Saturday, 5 August 2017 at 18:17:49 UTC, Simon Bürger wrote: If a lambda function uses a local variable, that variable is captured using a hidden this-pointer. But

Re: lambda function with "capture by value"

2017-08-05 Thread Johnson Jones via Digitalmars-d-learn
On Saturday, 5 August 2017 at 18:17:49 UTC, Simon Bürger wrote: If a lambda function uses a local variable, that variable is captured using a hidden this-pointer. But this capturing is always by reference. Example: int i = 1; auto dg = (){ writefln("%s", i); }; i = 2; dg(); //

Re: Getting enum from value

2017-08-05 Thread Kreikey via Digitalmars-d-learn
On Saturday, 5 August 2017 at 15:33:57 UTC, Matthew Remmel wrote: I feel like I'm missing something, but there has to be an easier way to convert a value into an enum than switching over every possible value: i.e [...] Capitals c = cast(Capitals)"Chicago"; writeln(c);// Illinois

Re: lambda function with "capture by value"

2017-08-05 Thread Stefan Koch via Digitalmars-d-learn
On Saturday, 5 August 2017 at 18:19:05 UTC, Stefan Koch wrote: On Saturday, 5 August 2017 at 18:17:49 UTC, Simon Bürger wrote: If a lambda function uses a local variable, that variable is captured using a hidden this-pointer. But this capturing is always by reference. Example: int i = 1;

Re: lambda function with "capture by value"

2017-08-05 Thread Stefan Koch via Digitalmars-d-learn
On Saturday, 5 August 2017 at 18:17:49 UTC, Simon Bürger wrote: If a lambda function uses a local variable, that variable is captured using a hidden this-pointer. But this capturing is always by reference. Example: int i = 1; auto dg = (){ writefln("%s", i); }; i = 2; dg(); //

lambda function with "capture by value"

2017-08-05 Thread Simon Bürger via Digitalmars-d-learn
If a lambda function uses a local variable, that variable is captured using a hidden this-pointer. But this capturing is always by reference. Example: int i = 1; auto dg = (){ writefln("%s", i); }; i = 2; dg(); // prints '2' Is there a way to make the delegate "capture by

gtkD window centering message up and no app on taskbar

2017-08-05 Thread Johnson Jones via Digitalmars-d-learn
When trying to center the window. If one uses ALWAYS_CENTERED any resizing of the window is totally busted. CENTER also does not work. move(0,0) seems to not be relative to the main display. I'd basically like to center the window on the main display or at least be able to set coordinates

Re: newCTFE Status August 2017

2017-08-05 Thread Stefan Koch via Digitalmars-d
On Tuesday, 1 August 2017 at 21:27:32 UTC, Stefan Koch wrote: [ ... ] After a surprisingly small amount of work we are now supporting pointers to array-items. It should be quite doable to add bounds-checked pointer with minimal amount of work. (Note this is only for 1D arrays/Slices ...

Re: Getting enum from value

2017-08-05 Thread ag0aep6g via Digitalmars-d-learn
On 08/05/2017 07:05 PM, ag0aep6g wrote: E enumFromValue(E)(string s) The type of `s` should probably be a template parameter as well.

Re: Getting enum from value

2017-08-05 Thread ag0aep6g via Digitalmars-d-learn
On 08/05/2017 05:33 PM, Matthew Remmel wrote: I feel like I'm missing something, but there has to be an easier way to convert a value into an enum than switching over every possible value: i.e enum Capitals { Indiana = "Indianapolis", Illinois = "Chicago", Ohio = "Columbus" }

Create class on stack

2017-08-05 Thread Johnson Jones via Digitalmars-d-learn
using gtk, it has a type called value. One has to use it to get the value of stuff but it is a class. Once it is used, one doesn't need it. Ideally I'd like to treat it as a struct since I'm using it in a delegate I would like to minimize unnecessary allocations. Is there any way to get D to

Re: Getting enum from value

2017-08-05 Thread Matthew Remmel via Digitalmars-d-learn
On Saturday, 5 August 2017 at 15:42:53 UTC, Rene Zwanenburg wrote: On Saturday, 5 August 2017 at 15:33:57 UTC, Matthew Remmel wrote: Any ideas? You can use to! in std.conv: import std.stdio; import std.conv; enum Foo { A = "A", B = "B" } void main() {

Re: Size of D bool vs size of C++ bool

2017-08-05 Thread Jeremy DeHaan via Digitalmars-d-learn
On Friday, 4 August 2017 at 20:38:16 UTC, Steven Schveighoffer wrote: On 8/4/17 4:16 PM, Jeremy DeHaan wrote: I'm trying to do some binding code, and I know that C++ bool isn't defined to be a specific size like D's bool. That said, can I assume that the two are the same size on the most

Re: gtk get actual pixel height of widget

2017-08-05 Thread FoxyBrown via Digitalmars-d-learn
On Saturday, 5 August 2017 at 15:23:15 UTC, Johnson Jones wrote: I am trying to set positions of widgets automatically. e.g., I have a paned widget and I to set the position of the handle manually based on a percentage of the window. e.g., 0.5 will set the handle midway and both children will

Re: Getting enum from value

2017-08-05 Thread Temtaime via Digitalmars-d-learn
On Saturday, 5 August 2017 at 15:42:53 UTC, Rene Zwanenburg wrote: On Saturday, 5 August 2017 at 15:33:57 UTC, Matthew Remmel wrote: Any ideas? You can use to! in std.conv: import std.stdio; import std.conv; enum Foo { A = "A", B = "B" } void main() {

Re: Jetbrains announce support for rust plugin, show them we want one too!

2017-08-05 Thread Russel Winder via Digitalmars-d
On Sat, 2017-08-05 at 13:16 +, Dmitry via Digitalmars-d wrote: > […] > I'm an one who needed a good IDE (+debugger) support. But  > unfortunately I'm not found a good one for D. > I have small skills in D, so my abilities is very limited  > (translate something to another language, etc). And

[Issue 17723] Replace Facebook on the front page with Weka.io

2017-08-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17723 Richard Cattermole changed: What|Removed |Added CC|

[Issue 17723] New: Replace Facebook on the front page with Weka.io

2017-08-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17723 Issue ID: 17723 Summary: Replace Facebook on the front page with Weka.io Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement

Re: How to build GUI-based applications in D ?

2017-08-05 Thread ashit via Digitalmars-d-learn
thank you everybody for your time to answer my questions.

Re: How to build GUI-based applications in D ?

2017-08-05 Thread ashit via Digitalmars-d-learn
On Saturday, 5 August 2017 at 07:10:50 UTC, aberba wrote: The DlangUI docs has you covered with everything you need to set it up both on the github README file or the github wiki. Its just: dub init PROJECT_NAME dlangui This will create project and add dlangui as dependency. Creating a

Re: Getting enum from value

2017-08-05 Thread Rene Zwanenburg via Digitalmars-d-learn
On Saturday, 5 August 2017 at 15:33:57 UTC, Matthew Remmel wrote: Any ideas? You can use to! in std.conv: import std.stdio; import std.conv; enum Foo { A = "A", B = "B" } void main() { writeln("A".to!Foo); }

Re: Getting enum from value

2017-08-05 Thread Stefan Koch via Digitalmars-d-learn
On Saturday, 5 August 2017 at 15:33:57 UTC, Matthew Remmel wrote: I feel like I'm missing something, but there has to be an easier way to convert a value into an enum than switching over every possible value: i.e [...] What you want is already in the standard library. std.conv.to can

Re: gtk: get property

2017-08-05 Thread Johnson Jones via Digitalmars-d-learn
On Saturday, 5 August 2017 at 15:19:43 UTC, Gerald wrote: On Saturday, 5 August 2017 at 15:08:21 UTC, Johnson Jones wrote: I am trying to get the handle size of panned. Not sure if I'm doing it right but [...] I'm using this in Tilix: Value handleSize = new Value(0);

Getting enum from value

2017-08-05 Thread Matthew Remmel via Digitalmars-d-learn
I feel like I'm missing something, but there has to be an easier way to convert a value into an enum than switching over every possible value: i.e enum Capitals { Indiana = "Indianapolis", Illinois = "Chicago", Ohio = "Columbus" } Capitals enumFromValue(string s) { switch (s)

gtk get actual pixel height of widget

2017-08-05 Thread Johnson Jones via Digitalmars-d-learn
I am trying to set positions of widgets automatically. e.g., I have a paned widget and I to set the position of the handle manually based on a percentage of the window. e.g., 0.5 will set the handle midway and both children will have the same height. I 0.2 will set it to to 20%. I want it to

Re: gtk: get property

2017-08-05 Thread Gerald via Digitalmars-d-learn
On Saturday, 5 August 2017 at 15:08:21 UTC, Johnson Jones wrote: I am trying to get the handle size of panned. Not sure if I'm doing it right but [...] I'm using this in Tilix: Value handleSize = new Value(0); paned.styleGetProperty("handle-size", handleSize);

Re: ASCII-ART mandelbrot running under newCTFE

2017-08-05 Thread Igor Shirkalin via Digitalmars-d
On Friday, 4 August 2017 at 22:50:03 UTC, Stefan Koch wrote: Hey Guys, I just trans-compiled a brainfuck mandelbrot into ctfeable D. newCTFE is able to execute it correctly (although it takes 3.5 minutes to do so). The code is here

gtk: get property

2017-08-05 Thread Johnson Jones via Digitalmars-d-learn
I am trying to get the handle size of panned. Not sure if I'm doing it right but Value value = new Value(); paned.getProperty("handle-size", value); GLib-GObject-CRITICAL **: g_object_get_property: assertion 'G_IS_VALUE (value)' failed or I get stuff like GLib-GObject-WARNING **:

Re: ASCII-ART mandelbrot running under newCTFE

2017-08-05 Thread Timon Gehr via Digitalmars-d
On 05.08.2017 02:59, Johnson Jones wrote: Any screenshots? I don't wanna have to install something I won't use but once or twice but would be interested in seeing what is going on since I used to be a fractal freak ;) https://dpaste.dzfl.pl/d7791f4e2845

Re: Remove instance from array

2017-08-05 Thread Igor Shirkalin via Digitalmars-d-learn
On Wednesday, 5 July 2017 at 16:04:16 UTC, Jolly James wrote: On Wednesday, 5 July 2017 at 15:56:45 UTC, Igor Shirkalin wrote: On Wednesday, 5 July 2017 at 15:48:14 UTC, Jolly James wrote: On Wednesday, 5 July 2017 at 15:44:47 UTC, Igor Shirkalin wrote: On Wednesday, 5 July 2017 at 15:30:08

Re: Fix gtkD api display

2017-08-05 Thread Mike Wey via Digitalmars-d-learn
On 04-08-17 17:24, Gerald wrote: On Friday, 4 August 2017 at 15:08:27 UTC, Mike Wey wrote: Improving the documentation is something i want to do but there are always some more important things to do. Like the Questions/Issues you posted earlier. So unless somebody volunteers it won't happen

Re: gtkD load images

2017-08-05 Thread Johnson Jones via Digitalmars-d-learn
On Saturday, 5 August 2017 at 12:51:13 UTC, Mike Wey wrote: On 03-08-17 21:56, Johnson Jones wrote: If I do something like import gdkpixbuf.Pixbuf; Pixbuf.newFromResource("C:\\a.jpg"); There are two issues here, you need to properly escape the slash: "C:a.jpg". And a.jpg is not a

Re: Jetbrains announce support for rust plugin, show them we want one too!

2017-08-05 Thread Dmitry via Digitalmars-d
On Saturday, 5 August 2017 at 11:26:57 UTC, Russel Winder wrote: If more people in the D community had the attitude "I can help with that" rather than "I wish they would so something", D tooling based on mainstream infrastructure would be a lot better than it currently is. Don't wait from a

Re: GtkD custom theme on Windows

2017-08-05 Thread Mike Wey via Digitalmars-d-learn
On 04-08-17 05:06, Andres Clari wrote: I've made a linux program with GtkD, and so far, it's been pretty awesome, however I'm thinking about porting it to Windows also, but the Adwaita theme is too fugly, and cringy, so I'd want to use a compatible theme, which is supposed to be doable. What

Re: gtkD load images

2017-08-05 Thread Mike Wey via Digitalmars-d-learn
On 03-08-17 21:56, Johnson Jones wrote: If I do something like import gdkpixbuf.Pixbuf; Pixbuf.newFromResource("C:\\a.jpg"); There are two issues here, you need to properly escape the slash: "C:a.jpg". And a.jpg is not a resource file, so you would use the Pixbuf constuctor to load an

Re: Bug in gtkd?

2017-08-05 Thread Mike Wey via Digitalmars-d-learn
On 03-08-17 23:11, Johnson Jones wrote: On Thursday, 3 August 2017 at 21:00:17 UTC, Mike Wey wrote: On 03-08-17 22:40, Johnson Jones wrote: Ok, so, I linked the gtk to the msys gtk that I installed before when trying to get glade to work and it worked! seems that msys is much more up to date

Re: Jetbrains announce support for rust plugin, show them we want one too!

2017-08-05 Thread Russel Winder via Digitalmars-d
On Sat, 2017-08-05 at 10:19 +0200, Daniel Kozak via Digitalmars-d wrote: > I would not say so: > https://github.com/intellij-dlanguage/intellij-dlanguage/issues/211 > Just because Kingsley has moved on doesn't mean the project is dead. In fact far from it. Except that currently is is spare time

Re: Jetbrains announce support for rust plugin, show them we want one too!

2017-08-05 Thread Russel Winder via Digitalmars-d
On Fri, 2017-08-04 at 19:42 +, Ali via Digitalmars-d wrote: > […] > They dont have plans for a standalone rust ide, like clion for c++ Remember CLion is first and foremost a CMake based IDE that happens to have excellent support for C and C++ files. Also Rust, and a whole load of other

Re: dlang-requetst: openssl 1.1 compatible release

2017-08-05 Thread Jack Applegame via Digitalmars-d-announce
On Friday, 4 August 2017 at 18:28:23 UTC, ikod wrote: On Friday, 4 August 2017 at 17:06:16 UTC, Jack Applegame wrote: Does dlang-requests support binding interface for outgoing connection, like curl --interface option? No, but this can be done. It would be nice if you post issue on github.

Re: Jetbrains announce support for rust plugin, show them we want one too!

2017-08-05 Thread Daniel Kozak via Digitalmars-d
I would not say so: https://github.com/intellij-dlanguage/intellij-dlanguage/issues/211 On Fri, Aug 4, 2017 at 8:36 PM, Ali via Digitalmars-d < digitalmars-d@puremagic.com> wrote: > On Friday, 4 August 2017 at 18:15:47 UTC, SCev wrote: > >> Just today, jetbrains announced their official support

Re: How to build GUI-based applications in D ?

2017-08-05 Thread Jacob Carlborg via Digitalmars-d-learn
On 2017-08-01 17:45, ashit wrote: thank you James i should try that. i was always enjoy the pure and efficiency of C. that made me stubborn to learn java. Just to be clear, there's no Java code in DWT. Everything is ported to D. -- /Jacob Carlborg

Re: How to build GUI-based applications in D ?

2017-08-05 Thread aberba via Digitalmars-d-learn
On Thursday, 3 August 2017 at 10:02:19 UTC, ashit wrote: On Tuesday, 1 August 2017 at 16:12:45 UTC, Dukc wrote: On Tuesday, 1 August 2017 at 15:18:12 UTC, ashit wrote: i couldn't set control's width and height (Button widget) shows error. maybe it works a different way. 1. Try