How to make a progressbar with DWT?

2016-02-27 Thread xky via Digitalmars-d-learn
Hello :-) Well.. In java with SWT case, used asyncExec and Runnable class. how can i do processing?

Re: How to make a progressbar with DWT?

2016-02-27 Thread aa via Digitalmars-d-learn
On Saturday, 27 February 2016 at 09:09:59 UTC, xky wrote: Hello :-) Well.. In java with SWT case, used asyncExec and Runnable class. how can i do processing? https://github.com/d-widget-toolkit/org.eclipse.swt.snippets/blob/4d3e76073e1901622dec80b6a3e24eebbaf6b68d/src/org/eclipse/swt/snippets/S

Re: How to make a progressbar with DWT?

2016-02-27 Thread aa via Digitalmars-d-learn
On Saturday, 27 February 2016 at 09:09:59 UTC, xky wrote: Hello :-) Well.. In java with SWT case, used asyncExec and Runnable class. how can i do processing? sorry i misunderstood your question, so please ignore about link.

Trouble installing DCD on Windows

2016-02-27 Thread Minas Mina via Digitalmars-d-learn
Hello. I'm trying to install DCD on windows 8.1 using DUB but I get an error. When executing "dub build --build=release --config=client" I get the following error: => Root package dcd contains reference to invalid package libdparse >=0.5.0 <0.6.0 <=

Re: Trouble installing DCD on Windows

2016-02-27 Thread BBasile via Digitalmars-d-learn
On Saturday, 27 February 2016 at 10:16:53 UTC, Minas Mina wrote: Hello. I'm trying to install DCD on windows 8.1 using DUB but I get an error. When executing "dub build --build=release --config=client" I get the following error: => Root package dcd contains reference to invalid package libdp

Re: How to better organize dub project to get 3 exe from same codebase?

2016-02-27 Thread Suliman via Digitalmars-d-learn
What I am doing wrong? http://img.ctrlv.in/img/16/02/27/56d1aae37b77a.png

Re: Calling python code from D

2016-02-27 Thread Ellery Newcomer via Digitalmars-d-learn
On Thursday, 25 February 2016 at 21:40:45 UTC, Wyatt wrote: I have a project I started in Python before I realised I really don't enjoy Python. It's been on the back-burner for a few years and I'd like to start again in D, but there's a particular python module (Mutagen) that I outright refuse

Re: How to better organize dub project to get 3 exe from same codebase?

2016-02-27 Thread Zardoz via Digitalmars-d-learn
On Saturday, 27 February 2016 at 13:56:21 UTC, Suliman wrote: What I am doing wrong? http://img.ctrlv.in/img/16/02/27/56d1aae37b77a.png Try : dub build code1:App1 dub build code1:App2

Why we cannot use string in mixins?

2016-02-27 Thread mahdi via Digitalmars-d-learn
I read this criticism about D on Reddit and it claims that you cannot use strings in mixins. Can you please elaborate about this and the reason behind it? QUOTE: Look at strings: they are defined as immutable(char []). "immutable" as in "you could put it in ROM", ... CTFE can't see strings co

Re: Why we cannot use string in mixins?

2016-02-27 Thread cym13 via Digitalmars-d-learn
On Saturday, 27 February 2016 at 23:29:49 UTC, mahdi wrote: I read this criticism about D on Reddit and it claims that you cannot use strings in mixins. Can you please elaborate about this and the reason behind it? QUOTE: Look at strings: they are defined as immutable(char []). "immutable" as

Re: Why we cannot use string in mixins?

2016-02-27 Thread ag0aep6g via Digitalmars-d-learn
On 28.02.2016 00:29, mahdi wrote: I read this criticism about D on Reddit and it claims that you cannot use strings in mixins. Can you please elaborate about this and the reason behind it? QUOTE: Look at strings: they are defined as immutable(char []). immutable(char)[] actually "immutable"

Re: Why we cannot use string in mixins?

2016-02-27 Thread Rikki Cattermole via Digitalmars-d-learn
On 28/02/16 12:43 PM, cym13 wrote: On Saturday, 27 February 2016 at 23:29:49 UTC, mahdi wrote: I read this criticism about D on Reddit and it claims that you cannot use strings in mixins. Can you please elaborate about this and the reason behind it? QUOTE: Look at strings: they are defined as i

Re: Why we cannot use string in mixins?

2016-02-27 Thread Chris Wright via Digitalmars-d-learn
On Sat, 27 Feb 2016 23:29:49 +, mahdi wrote: > I read this criticism about D on Reddit and it claims that you cannot > use strings in mixins. Can you please elaborate about this and the > reason behind it? > > QUOTE: > Look at strings: they are defined as immutable(char []). That would be an

Re: Why we cannot use string in mixins?

2016-02-27 Thread mahdi via Digitalmars-d-learn
Thanks. So the author was plain wrong about using enums instead of strings. The misconception is due to assuming we can use `string` variables at compile time but we cannot (as they are run-time data).

Re: Installing DUB on OSX

2016-02-27 Thread Joel via Digitalmars-d-learn
On Friday, 26 February 2016 at 08:03:19 UTC, Jacob Carlborg wrote: On 2016-02-25 22:38, Joel wrote: .dub is grayed out on Finder, and isn't writable. I'm suspecting that you don't own that directory. You can see the owner by running this: ls -l -a ~/ | grep dub The third column is the own

Re: Why we cannot use string in mixins?

2016-02-27 Thread sigod via Digitalmars-d-learn
On Saturday, 27 February 2016 at 23:43:07 UTC, cym13 wrote: Could you please provide a link to said comment? Maybe some context would help bring some sanity over this statement. Topic: https://www.reddit.com/r/programming/comments/30sqtd/why_didnt_the_d_language_become_mainstream_as/ Said co

Is DUB the best place to get examples of "Best of" D code?

2016-02-27 Thread WhatMeWorry via Digitalmars-d-learn
If so, is there a way to do a global search of all projects in DUB?

Re: Is DUB the best place to get examples of "Best of" D code?

2016-02-27 Thread Nicholas Wilson via Digitalmars-d-learn
On Sunday, 28 February 2016 at 05:59:39 UTC, WhatMeWorry wrote: If so, is there a way to do a global search of all projects in DUB? Aside downloading them all and loading them into an IDE, Ctrl+F for keywords in the description. For what purpose? Learning? Ctrl+F finds me http://code.dlang