Re: Install DWT2 using DMD and Tango

2011-06-08 Thread Andrew Wiley
On Wed, Jun 8, 2011 at 2:57 PM, Jesse Phillips wrote: > Andrew Wiley Wrote: > > > On Wed, Jun 8, 2011 at 11:54 AM, Fabian wrote: > > > > > Hi > > > I'm trying to install DWT2 to create GUI applications with D. > > > I have downloaded DWT2 with TortoiseHg already and I've installed Ruby > and > >

Re: Is it reasonable to learn D

2011-06-08 Thread Kagamin
Andrej Mitrovic Wrote: > No problem with FF3. You should upgrade FF4 to FF3 I guess. :P Your FF3 seems to use Adobe Flash instead of HTML5 video.

Re: DMD Backend: Deciding instructions to use/avoid?

2011-06-08 Thread Johann MacDonagh
On 6/4/2011 5:36 AM, Nick Sabalausky wrote: I'm working with Jacob to try to resolve an issue where D programs compiled on his Ubuntu box (in 32-bit/32-bit) error out on my Ubuntu box with "Illegal instruction". At first we thought it was because my OS was an older version than his. But he tried

Re: Convert TickDuration to Duration?

2011-06-08 Thread Jonathan M Davis
On 2011-06-08 14:30, David Nadlinger wrote: > On 6/8/11 11:14 PM, Jonathan M Davis wrote: > > On 2011-06-08 13:36, David Nadlinger wrote: > >> Did I miss a way to convert a TickDuration to a Duration? If there > >> really is none, is there a reason for this? > >> > >> Having to do an immediate con

Re: Install DWT2 using DMD and Tango

2011-06-08 Thread Jesse Phillips
Andrew Wiley Wrote: > On Wed, Jun 8, 2011 at 11:54 AM, Fabian wrote: > > > Hi > > I'm trying to install DWT2 to create GUI applications with D. > > I have downloaded DWT2 with TortoiseHg already and I've installed Ruby and > > Rake. But when I try to build the packages I get the following error

Re: Convert TickDuration to Duration?

2011-06-08 Thread David Nadlinger
On 6/8/11 11:14 PM, Jonathan M Davis wrote: On 2011-06-08 13:36, David Nadlinger wrote: Did I miss a way to convert a TickDuration to a Duration? If there really is none, is there a reason for this? Having to do an immediate conversion to a hnsecs long feels somehow odd: --- Duration maxFlushI

Re: Install DWT2 using DMD and Tango

2011-06-08 Thread Nick Sabalausky
"Andrew Wiley" wrote in message news:mailman.718.1307566795.14074.digitalmars-d-le...@puremagic.com... > On Wed, Jun 8, 2011 at 11:54 AM, Fabian wrote: > >> Hi >> I'm trying to install DWT2 to create GUI applications with D. >> I have downloaded DWT2 with TortoiseHg already and I've installed Ru

Re: with statement doesn't call struct destructor?

2011-06-08 Thread simendsjo
On 08.06.2011 23:14, Jonathan M Davis wrote: On 2011-06-08 13:31, simendsjo wrote: import std.stdio; void main() { struct S { this(bool a) { writeln(" this"); } ~this() { writeln(" ~this"); } } writeln("scoped:"); { auto s = S(true); } writeln("with:"); with(S(true)) { } } Output: scoped: th

Re: Convert TickDuration to Duration?

2011-06-08 Thread Jonathan M Davis
On 2011-06-08 13:36, David Nadlinger wrote: > Did I miss a way to convert a TickDuration to a Duration? If there > really is none, is there a reason for this? > > Having to do an immediate conversion to a hnsecs long feels somehow odd: > > --- > Duration maxFlushInterval; > if (dur!"hnsecs"(flush

Re: with statement doesn't call struct destructor?

2011-06-08 Thread Jonathan M Davis
On 2011-06-08 13:31, simendsjo wrote: > import std.stdio; > void main() { > struct S { > this(bool a) { writeln(" this"); } > ~this() { writeln(" ~this"); } > } > > writeln("scoped:"); > { > auto s = S(true); > } > > writeln("with:"); > with(S(true)) { > } > } > > Output: > > scoped: > this > ~

Re: Install DWT2 using DMD and Tango

2011-06-08 Thread Fabian
But I try to install DWT2. Do you understand? I've got the Tango book but it's pretty difficult to install DWT2. So I can't build GUI apps. Greetings Fabian

Re: Install DWT2 using DMD and Tango

2011-06-08 Thread Andrew Wiley
On Wed, Jun 8, 2011 at 11:54 AM, Fabian wrote: > Hi > I'm trying to install DWT2 to create GUI applications with D. > I have downloaded DWT2 with TortoiseHg already and I've installed Ruby and > Rake. But when I try to build the packages I get the following error > message: > > http://imageshack.

Convert TickDuration to Duration?

2011-06-08 Thread David Nadlinger
Did I miss a way to convert a TickDuration to a Duration? If there really is none, is there a reason for this? Having to do an immediate conversion to a hnsecs long feels somehow odd: --- Duration maxFlushInterval; if (dur!"hnsecs"(flushTimer.peek.hnsecs) > maxFlushInterval) { … } --- David

Re: Cover handler for a statement or a block of statements.

2011-06-08 Thread simendsjo
On 08.06.2011 21:09, Jonathan M Davis wrote: On 2011-06-08 12:06, vincent wrote: Cover handler for a statement or a block of statements. I would like to suggest a method for defining code statement covering. Some examp1es of a cover are as follows :- - try ... finally - this is defined in dotne

with statement doesn't call struct destructor?

2011-06-08 Thread simendsjo
import std.stdio; void main() { struct S { this(bool a) { writeln(" this"); } ~this() { writeln(" ~this"); } } writeln("scoped:"); { auto s = S(true); } writeln("with:"); with(S(true)) { } } Output: scoped: this ~this with: this

Re: DMD Backend: Deciding instructions to use/avoid?

2011-06-08 Thread Nick Sabalausky
"Don" wrote in message news:isoh6c$15jb$1...@digitalmars.com... > Nick Sabalausky wrote: >> So my main question: Does DMD do anything like, say, detecting the CPU at >> compile time and then enabling instructions only available on that CPU >> and up? Or does it do anything like always assuming

Re: Is it reasonable to learn D

2011-06-08 Thread Fabian
Das ist ja klasse. Deutschland, Österreich, Schweiz - alle da

Re: Is it reasonable to learn D

2011-06-08 Thread David Nadlinger
On 6/8/11 9:16 PM, Don wrote: Trass3r wrote: - The D compiler has only bad code optimization Yep, but there is LDC and GDC which use LLVM and GCC as backends respectively. - There are no maintained GUI libraries I wouldn't agree with that. Some people are still working on GtkD, QtD and DWT.

Re: Is it reasonable to learn D

2011-06-08 Thread Fabian
I'm very surprised that there are so many Germans who use D. Maybe the German D book is a reason for that. I don't know but it's pretty cool.

Re: Is it reasonable to learn D

2011-06-08 Thread Don
Trass3r wrote: - The D compiler has only bad code optimization Yep, but there is LDC and GDC which use LLVM and GCC as backends respectively. - There are no maintained GUI libraries I wouldn't agree with that. Some people are still working on GtkD, QtD and DWT. - The development of the co

Re: Is it reasonable to learn D

2011-06-08 Thread Andrej Mitrovic
No problem with FF3. You should upgrade FF4 to FF3 I guess. :P

Re: Cover handler for a statement or a block of statements.

2011-06-08 Thread Jonathan M Davis
On 2011-06-08 12:06, vincent wrote: > Cover handler for a statement or a block of statements. > > I would like to suggest a method for defining code statement > covering. Some examp1es of a cover are as follows :- > - try ... finally - this is defined in dotnet as a using > - try ... (catch)+ > -

Cover handler for a statement or a block of statements.

2011-06-08 Thread vincent
Cover handler for a statement or a block of statements. I would like to suggest a method for defining code statement covering. Some examp1es of a cover are as follows :- - try ... finally - this is defined in dotnet as a using - try ... (catch)+ - cursor save and display others ... restore s

Re: DMD Backend: Deciding instructions to use/avoid?

2011-06-08 Thread Don
Nick Sabalausky wrote: So my main question: Does DMD do anything like, say, detecting the CPU at compile time and then enabling instructions only available on that CPU and up? Or does it do anything like always assuming the target CPU has SSE2? Anything like that that could cause differences be

Re: Is it reasonable to learn D

2011-06-08 Thread Trass3r
http://h3.gd/code/nucleus/ I lol'd at the suggestion to upgrade my FF4 to a modern HTML5-compliant browser. ^^ No problems with Opera.

Install DWT2 using DMD and Tango

2011-06-08 Thread Fabian
Hi I'm trying to install DWT2 to create GUI applications with D. I have downloaded DWT2 with TortoiseHg already and I've installed Ruby and Rake. But when I try to build the packages I get the following error message: http://imageshack.us/photo/my-images/62/dwt2error.png/ Is there anybody who

Re: Is it reasonable to learn D

2011-06-08 Thread Kagamin
Trass3r Wrote: > http://h3.gd/code/nucleus/ I lol'd at the suggestion to upgrade my FF4 to a modern HTML5-compliant browser.

Re: Is it reasonable to learn D

2011-06-08 Thread Adam D. Ruppe
> Is D1.x still supported and under development? Yes, though it almost never gets new features anymore, just bug fixes about once a month. See the changelog here: http://www.digitalmars.com/d/1.0/changelog.html

Re: Is it reasonable to learn D

2011-06-08 Thread Fabian
Is D1.x still supported and under development?

Re: Is it reasonable to learn D

2011-06-08 Thread Fabian
Okay - Thank you. Greetings Fab

Re: Is it reasonable to learn D

2011-06-08 Thread Adam D. Ruppe
Fabian wrote: > By the way: I've read that Digital Mars C++ compiler has got a bad > code optimization. Is that true? In general, no. There's some benchmarks where it loses, but there's also some that win. Overall, it isn't as good at optimizing as gcc and visual studio, but it still isn't bad.

Re: Is it reasonable to learn D

2011-06-08 Thread Fabian
Hi I'm using D on Windows so I'm not able to use LDC. But I believe DMD should be a good alternative too. If the garbage collection makes trouble I can disable it - or? http://stackoverflow.com/questions/472133/turning-off-the-d-garbage-collector By the way: I've read that Digital Mars C++ comp

Re: Is it reasonable to learn D

2011-06-08 Thread Steven Schveighoffer
On Wed, 08 Jun 2011 07:11:03 -0400, Fabian wrote: Calling all: Thank you. I want to use Tango because a friend has lent me a book about learning D and using the Tango Software Library. So I'm forced to use D 1.x, aren't I? At the moment, yes. I believe there are ports to D2 in the works

Re: Is it reasonable to learn D

2011-06-08 Thread Fabian
Calling all: Thank you. I want to use Tango because a friend has lent me a book about learning D and using the Tango Software Library. So I'm forced to use D 1.x, aren't I? At the moment I just want to learn D - I'm not going to code any big project with D next time so I think DMD is OK at th

Re: Is it reasonable to learn D

2011-06-08 Thread Fabian
Oh - yeah. Thank you - English can be so easy :D