DCat screw-up - sorry!

2009-05-07 Thread Steve Teale
There was a bug in my use of VirtualProtect and in my testing. I apologize to anyone who took the trouble to download it. There's a new zip file now that fixes it.

Re: Slide design

2009-05-07 Thread Lutger
Walter Bright wrote: Sean Kelly wrote: For lectures I basically have a choice between two options: 1. Take notes and not remember a darn thing that was said. 2. Not take any notes and remember the lecture. Eh, I found that the physical act of taking notes tended to fix it in my brain.

RuDy

2009-05-07 Thread bearophile
For Ruby extensions written in D (mostly an idea still): http://tomash.wrug.eu/2009/05/08/rudy-on-euruko-last-thoughts-before-the-takeoff.html Bye, bearophile

Re: Destructors and Deterministic Memory Management

2009-05-07 Thread Daniel Keep
Frits van Bommel wrote: Daniel Keep wrote: When your class' dtor is called, you CANNOT say whether any of the references into GC-controlled memory you hold are still valid. You forgot to add: unless you know for a *fact* they're referenced from a GC root, for example from a global

Re: D modules referenced by C source?

2009-05-07 Thread Denis Koroskin
On Thu, 07 May 2009 03:02:16 +0400, Matt webwra...@fastmail.fm wrote: Hi, I apologise if this has already been asked, but I haven't gone and DLed a news reader yet, so Firefox keeps complaining every time I try to use the search box. I was planning to include some C source into a D

DCat screw-up - sorry!

2009-05-07 Thread Steve Teale
There was a bug in my use of VirtualProtect and in my testing. I apologize to anyone who took the trouble to download it. There's a new zip file now that fixes it.

Re: Destructors and Deterministic Memory Management

2009-05-07 Thread Frits van Bommel
Daniel Keep wrote: Frits van Bommel wrote: Daniel Keep wrote: When your class' dtor is called, you CANNOT say whether any of the references into GC-controlled memory you hold are still valid. You forgot to add: unless you know for a *fact* they're referenced from a GC root, for example from

Re: (DMD2.029)error, but (DMD2.028)OK!

2009-05-07 Thread davidl
在 Thu, 07 May 2009 13:04:22 +0800,Du Liang duliang...@163.com 写道: import std.stdio; void main(){ enum ee0:int{a=1000} writeln(ee0.a); enum ee1:long{a=1000} ; writeln(ee1.a); //(DMD2.029)error, but (DMD2.028)OK! enum ee2:byte{a=125} writeln(ee2.a); enum

Re: D modules referenced by C source?

2009-05-07 Thread Matt
Denis Koroskin Wrote: On Thu, 07 May 2009 03:02:16 +0400, Matt webwra...@fastmail.fm wrote: Hi, I apologise if this has already been asked, but I haven't gone and DLed a news reader yet, so Firefox keeps complaining every time I try to use the search box. I was planning to

Re: Massive loss for D on Tiobe

2009-05-07 Thread Derek Parnell
On Wed, 6 May 2009 21:02:58 + (UTC), BCS wrote: Reply to Georg, D made the May headline on Tiobe: Programming language D suffers sharp fall. You can say that again, D went down 5 places, to below languges like RPG(OS/400) and ABAP! D's loss seems unbelievable. D now has a 0.628%

Re: Massive loss for D on Tiobe

2009-05-07 Thread Vincenzo Ampolo
Eldar Insafutdinov wrote: D1 has complete open sources now, submit patches, make it more stable. That's what people are actually doing. From dmd.2.029/dmd/src/dmd/backendlicense.txt The Software is copyrighted and comes with a single user license, and may not be redistributed. If you wish to

Re: DCat screw-up - sorry!

2009-05-07 Thread Nick Sabalausky
Steve Teale steve.te...@britseyeview.com wrote in message news:gttvve$eo...@digitalmars.com... There was a bug in my use of VirtualProtect and in my testing. I apologize to anyone who took the trouble to download it. There's a new zip file now that fixes it. Can we please keep announcements

Re: (DMD2.029)error, but (DMD2.028)OK!

2009-05-07 Thread Du Liang
davidl Wrote: If I remember correctly, I reported a similar bug to the bugzilla. You can take a look at the bugzilla: http://d.puremagic.com/issues/ Thank you for your reply !!

Re: NetBeans

2009-05-07 Thread BLS
dsimcha wrote: == Quote from JC (jcrapuchet...@gmail.com)'s article I am considering trying NetBeans for all of my development. I have been using Eclipse, but have found that I am only using it because of its project interface and its language highlight support (which sometimes doesn't work).

Re: It is a bug ?

2009-05-07 Thread grauzone
Du Liang wrote: grauzone Wrote: Denis Koroskin wrote: On Wed, 06 May 2009 19:33:03 +0400, Jarrett Billingsley jarrett.billings...@gmail.com wrote: On Wed, May 6, 2009 at 10:06 AM, Du Liang duliang...@163.com wrote: int[] arrB = [2,2,2]; // arrB is static in[] or bug ? Declaring

Re: Massive loss for D on Tiobe

2009-05-07 Thread grauzone
superdan wrote: grauzone Wrote: You're offending me. Please stop this immediately. Thank you. wut happened to `flame on', hercules? expletives deleted When it comes to everyone being better off, what about stopping talking like a 16 year old rapper on a hormone trip? Grow up. Thank

GC: Yeah, everybody knows how it works. How does it?

2009-05-07 Thread Georg Wrede
Frits van Bommel wrote: Daniel Keep wrote: Frits van Bommel wrote: Daniel Keep wrote: When your class' dtor is called, you CANNOT say whether any of the references into GC-controlled memory you hold are still valid. You forgot to add: unless you know for a *fact* they're referenced from a

Re: Massive loss for D on Tiobe

2009-05-07 Thread superdan
grauzone Wrote: superdan wrote: grauzone Wrote: You're offending me. Please stop this immediately. Thank you. wut happened to `flame on', hercules? expletives deleted When it comes to everyone being better off, what about stopping talking like a 16 year old rapper on a

Re: Massive loss for D on Tiobe

2009-05-07 Thread grauzone
superdan wrote: grauzone Wrote: superdan wrote: grauzone Wrote: You're offending me. Please stop this immediately. Thank you. wut happened to `flame on', hercules? expletives deleted When it comes to everyone being better off, what about stopping talking like a 16 year old rapper on a

Re: Massive loss for D on Tiobe

2009-05-07 Thread Vincenzo Ampolo
grauzone wrote: I'm just thinking that what D actually needs, is a stable implementation, and not more features. +1 And... i think grauzone is right, Superdan, your language seems offensive to me too. Please stop a not needed flame.

Re: Massive loss for D on Tiobe

2009-05-07 Thread Don
Vincenzo Ampolo wrote: grauzone wrote: I'm just thinking that what D actually needs, is a stable implementation, and not more features. +1 I think you'll like the next DMD release g.

Re: Massive loss for D on Tiobe

2009-05-07 Thread Jarrett Billingsley
On Thu, May 7, 2009 at 10:30 AM, Don nos...@nospam.com wrote: Vincenzo Ampolo wrote: grauzone wrote: I'm just thinking that what D actually needs, is a stable implementation, and not more features. +1 I think you'll like the next DMD release g. Oman, will it be another 0.178? I can

Re: Massive loss for D on Tiobe

2009-05-07 Thread Walter Bright
Derek Parnell wrote: On the surface, it seems that the Tiobe figures a very rubbery, if not outright dishonest. I sent an email to Tiobe, and received a nice reply from Paul Jansen, who runs the index. He showed me his numbers, and the biggest factor in the drop in D's ranking was a large

SCHEDULED for deprecation

2009-05-07 Thread Tomasz Sowi#324;ski
This phrase gave me an idea for a small feat: deprecated(2009-4-19) void foo(); Compiling references to the deprecated declaration *before* the deprecation date would result in a *warning*. Compiling the deprecated declaration OR any reference to it *after* the date would result in an *error*.

Re: GC: Yeah, everybody knows how it works. How does it?

2009-05-07 Thread dsimcha
== Quote from Leandro Lucarella (llu...@gmail.com)'s article (from the bottom up, in chronological order, of course) If you want to know why you don't have ordering guarantees, it's because when the garbage is swept, you don't do it by following the connectivity graph (as you do when you mark

Re: SCHEDULED for deprecation

2009-05-07 Thread Denis Koroskin
On Thu, 07 May 2009 20:57:36 +0400, Tomasz Sowi#324 wrote: This phrase gave me an idea for a small feat: deprecated(2009-4-19) void foo(); Compiling references to the deprecated declaration *before* the deprecation date would result in a *warning*. Compiling the deprecated declaration OR

Write/Writeln, etc

2009-05-07 Thread bearophile
std.metastrings.Format of D 2.029 is broken, I think. The following doesn't work, the pragma isn't seen as an instruction, I guess this is normal, but I don't like it much: static if (true) pragma(msg, true); else pragma(msg, false); D2

Re: GC: Yeah, everybody knows how it works. How does it?

2009-05-07 Thread Leandro Lucarella
dsimcha, el 7 de mayo a las 16:57 me escribiste: == Quote from Leandro Lucarella (llu...@gmail.com)'s article (from the bottom up, in chronological order, of course) If you want to know why you don't have ordering guarantees, it's because when the garbage is swept, you don't do it by

Re: Write/Writeln, etc

2009-05-07 Thread BCS
Reply to bearophile, std.metastrings.Format of D 2.029 is broken, I think. The following doesn't work, the pragma isn't seen as an instruction, I guess this is normal, but I don't like it much: static if (true) pragma(msg, true); else pragma(msg, false);

Re: SCHEDULED for deprecation

2009-05-07 Thread Nick Sabalausky
Tomasz Sowi#324; ski tomeksowi.remove.t...@gmail.and.this.com wrote in message news:gtv3u0$2q0...@digitalmars.com... This phrase gave me an idea for a small feat: deprecated(2009-4-19) void foo(); Compiling references to the deprecated declaration *before* the deprecation date would result

Re: Write/Writeln, etc

2009-05-07 Thread Jarrett Billingsley
On Thu, May 7, 2009 at 1:38 PM, bearophile bearophileh...@lycos.com wrote: The following doesn't work, the pragma isn't seen as an instruction, I guess this is normal, but I don't like it much: static if (true)    pragma(msg, true); else    pragma(msg, false); Funny, I just ran into that

Re: Write/Writeln, etc

2009-05-07 Thread Derek Parnell
On Thu, 7 May 2009 16:02:52 -0400, Jarrett Billingsley wrote: Once again: 'much' and 'too much' can never. modify. adjectives. They are not adverbs. Really? Have consulted the superdan on that? Also, I note that you have some sentences written without subject or verb, or object, and

Re: Write/Writeln, etc

2009-05-07 Thread superdan
Derek Parnell Wrote: On Thu, 7 May 2009 16:02:52 -0400, Jarrett Billingsley wrote: Once again: 'much' and 'too much' can never. modify. adjectives. They are not adverbs. Really? Have consulted the superdan on that? huh? wut? wut about me? if i type in vernacular doesn't

Re: Write/Writeln, etc

2009-05-07 Thread bearophile
Jarrett Billingsley: If you add braces, for some reason it works. I think that if you don't put braces the compiler sees: static if (true) else If you put them it sees: static if (true) {} else {} The first isn't correct D code. But I'd like the pragma to be seen as an instruction anyway by the

A possible GC optimization

2009-05-07 Thread bearophile
Among the new things done for Python 2.7 (currently in alpha) they have improved the GC: http://bugs.python.org/issue4074 http://bugs.python.org/issue4688 There they have shown a small Python program named tuple_gc_hell.py, this is a reduced version: import time, gc def list_of_tuples(n):

Iterators Must Go

2009-05-07 Thread Andrei Alexandrescu
The slides from my keynote at BoostCon 2009 (www.boostcon.com) are now available from: http://www.boostcon.com/site-media/var/sphene/sphwiki/attachment/2009/05/08/iterators-must-go.pdf The talk went so well, the urge to brag is too mighty to resist. I mean it's not everyday that several

Re: SCHEDULED for deprecation

2009-05-07 Thread Georg Wrede
Nick Sabalausky wrote: Tomasz Sowi#324; ski tomeksowi.remove.t...@gmail.and.this.com wrote in message news:gtv3u0$2q0...@digitalmars.com... This phrase gave me an idea for a small feat: deprecated(2009-4-19) void foo(); Compiling references to the deprecated declaration *before* the

Re: Iterators Must Go

2009-05-07 Thread Georg Wrede
Andrei Alexandrescu wrote: The slides from my keynote at BoostCon 2009 (www.boostcon.com) are now available from: http://www.boostcon.com/site-media/var/sphene/sphwiki/attachment/2009/05/08/iterators-must-go.pdf The talk went so well, the urge to brag is too mighty to resist. I mean it's

Re: Iterators Must Go

2009-05-07 Thread Walter Bright
http://www.reddit.com/r/programming/comments/8isiw/author_of_modern_c_design_stl_iterators_must_die/

What's the current state of D?

2009-05-07 Thread Ameer Armaly
Hi all. When I last used D a couple years ago, 2.0 was the experimental branch and 1.0 was stable. Now that I have a little time on my hands I'm wondering: what is the current landscape? Is 2.0 approaching any sort of stability? Are there still two competing runtime libraries or have they been

Re: D modules referenced by C source?

2009-05-07 Thread Robert Fraser
Matt wrote: Denis Koroskin Wrote: On Thu, 07 May 2009 03:02:16 +0400, Matt webwra...@fastmail.fm wrote: Hi, I apologise if this has already been asked, but I haven't gone and DLed a news reader yet, so Firefox keeps complaining every time I try to use the search box. I was planning to

Re: What's the current state of D?

2009-05-07 Thread BCS
Hello Ameer, Hi all. When I last used D a couple years ago, 2.0 was the experimental branch and 1.0 was stable. still true Now that I have a little time on my hands I'm wondering: what is the current landscape? Is 2.0 approaching any sort of stability? the const system is stable and now

Cryptic DMD error

2009-05-07 Thread Lars T. Kyllingstad
Can someone with knowledge of the DMD source code please explain this error message for me? dmd: glue.c:652: virtual void FuncDeclaration::toObjFile(int): Assertion `!v-csym' failed. I had a look at the DMD source to try and make some sense of it myself, but didn't succeed. I am using the

[Issue 1586] DMD and GDC segfaults on incomplete code segment.

2009-05-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1586 --- Comment #4 from clugd...@yahoo.com.au 2009-05-07 02:21 --- Fixed in DMD2.028; not yet in D1. --

[Issue 2808] 'nothrow' nested functions cannot be parsed

2009-05-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2808 clugd...@yahoo.com.au changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Issue 2757] resource management in a timely manner

2009-05-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2757 --- Comment #5 from nick.barbal...@gmail.com 2009-05-07 03:11 --- (In reply to comment #5) Because your solution doesn't solve even your problem. Perhaps you would like to propose a better solution ? My original request was have

[Issue 2947] Array literal changeable if part of class.

2009-05-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2947 --- Comment #1 from g...@nwawudu.com 2009-05-07 03:32 --- *** Bug 2948 has been marked as a duplicate of this bug. *** --

[Issue 2949] New: array.length not an lvalue

2009-05-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2949 Summary: array.length not an lvalue Product: D Version: 2.029 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD

[Issue 2948] Array literal changeable if part of class.

2009-05-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2948 g...@nwawudu.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Issue 2950] New: Switch for enum : string fails

2009-05-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2950 Summary: Switch for enum : string fails Product: D Version: 2.029 Platform: PC OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component:

[Issue 2949] array.length not an lvalue

2009-05-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2949 dsim...@yahoo.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Issue 808] using properties as lvalues

2009-05-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=808 dsim...@yahoo.com changed: What|Removed |Added CC||ghaec...@idworld.net ---

Is it a bug ?

2009-05-07 Thread Du Liang
import std.stdio; class A{ int x; struct AS{int y;} } class B:A{ } void main(){ B:A.AS as1; /// : : : : ? ? ? B : A . AS ?? as1.y = 100; writeln(as1.y); A.AS as2; as2.y = 200; writeln(as2.y); readln(); }

[Issue 1544] Internal error: ..\ztc\cgcs.c 358 -- tuples and structs

2009-05-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1544 clugd...@yahoo.com.au changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

Re: Is it a bug ?

2009-05-07 Thread Jarrett Billingsley
On Thu, May 7, 2009 at 10:21 AM, Du Liang duliang...@163.com wrote:        B:A.AS   as1;   /// : : : : ? ? ?   B : A . AS ?? B: is a label.

[Issue 2951] New: std.random.dice() should be templated on proportions.

2009-05-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2951 Summary: std.random.dice() should be templated on proportions. Product: D Version: 2.029 Platform: PC OS/Version: Windows Status: NEW Severity: enhancement

[Issue 2952] New: Segfault on exit when using array ops with arrays of doubles larger than 8 elements

2009-05-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2952 Summary: Segfault on exit when using array ops with arrays of doubles larger than 8 elements Product: D Version: 2.029 Platform: PC OS/Version: Linux Status: NEW

[Issue 2249] DMD can't handle include paths with spaces in them

2009-05-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2249 crist...@zerobugs.org changed: What|Removed |Added CC||crist...@zerobugs.org