Re: Invariant and pre/post-conditions order

2012-01-20 Thread Manfred Nowak
Walter Bright wrote: > I'm not going to swap them without a compelling demonstration of > its advantages. If there are advantages, then the specs are wrong, because they do not define the sequence of execution and an optimizing compiler might put the calls to s and `invariant' into different t

Re: Invariant and pre/post-conditions order

2012-01-20 Thread Walter Bright
On 1/20/2012 12:23 AM, Manfred Nowak wrote: If there are advantages, then the specs are wrong, I recently fixed the specs to define the sequence.

Re: byKey and byValue: properties or methods?

2012-01-20 Thread Marco Leise
Am 19.01.2012, 21:53 Uhr, schrieb Jonathan M Davis : On Thursday, January 19, 2012 20:56:39 Marco Leise wrote: I just came across some C++ code and came to the conclusion, that properties and indexed access should not modify the structure. In other words all my @property and opIndex will probab

Re: byKey and byValue: properties or methods?

2012-01-20 Thread Jonathan M Davis
On Friday, January 20, 2012 09:58:42 Marco Leise wrote: > Ah, I meant to say that getters should not modify their object. When I see > "a = abc.x[i]" I would be a little surprised to find that it changes the > observable state of abc. The same goes for "a = b.length()". Now it is > clearer, isn't i

Re: byKey and byValue: properties or methods?

2012-01-20 Thread Peter Alexander
On 20/01/12 12:57 AM, Steven Schveighoffer wrote: On Thu, 19 Jan 2012 18:41:44 -0500, Andrei Alexandrescu wrote: On 1/19/12 4:43 PM, Steven Schveighoffer wrote: On Thu, 19 Jan 2012 14:06:00 -0500, torhu wrote: If the type of byKeys is Range, I would expect to be able to treat it like one. N

Re: byKey and byValue: properties or methods?

2012-01-20 Thread Jonathan M Davis
On Friday, January 20, 2012 09:29:12 Peter Alexander wrote: > Can you define what "is logically a property means"? (I assume you meant > "field" there) > > That means different things to different people. For example, in my > mind, something that is logically a field would have an address. From >

Re: byKey and byValue: properties or methods?

2012-01-20 Thread Johannes Pfau
Jose Armando Garcia wrote: > On Thu, Jan 19, 2012 at 9:41 PM, Andrei Alexandrescu > wrote: >> On 1/19/12 4:43 PM, Steven Schveighoffer wrote: >>> >>> On Thu, 19 Jan 2012 14:06:00 -0500, torhu wrote: If the type of byKeys is Range, I would expect to be able to treat it like one. No

Re: byKey and byValue: properties or methods?

2012-01-20 Thread Jens Mueller
Jonathan M Davis wrote: > On Thursday, January 19, 2012 22:30:46 Jose Armando Garcia wrote: > > I think MSDN has some decent advice on when to use properties vs > > methods: > > http://msdn.microsoft.com/en-us/library/bzwdh01d(v=vs.71).aspx#cpconpropert > > yusageguidelinesanchor1 > > Those do see

Re: C++ pimpl

2012-01-20 Thread Robert Caravani
First of all thanks for this fast answer! > On 1/19/2012 12:48 PM, Roberto Caravani wrote: > > I think this would be a real neat and very important feature, when it > > comes to shared libraries. Is there any plan to implement something > > like that in the future? Do I miss something? > > The pi

Re: byKey and byValue: properties or methods?

2012-01-20 Thread Jonathan M Davis
On Friday, January 20, 2012 11:01:10 Jens Mueller wrote: > Jonathan M Davis wrote: > > On Thursday, January 19, 2012 22:30:46 Jose Armando Garcia wrote: > > > I think MSDN has some decent advice on when to use properties vs > > > methods: > > > http://msdn.microsoft.com/en-us/library/bzwdh01d(v=vs.

Re: byKey and byValue: properties or methods?

2012-01-20 Thread Jens Mueller
Jonathan M Davis wrote: > On Friday, January 20, 2012 11:01:10 Jens Mueller wrote: > > Jonathan M Davis wrote: > > > On Thursday, January 19, 2012 22:30:46 Jose Armando Garcia wrote: > > > > I think MSDN has some decent advice on when to use properties vs > > > > methods: > > > > http://msdn.micros

wxWidgets good news

2012-01-20 Thread bls
Hi, it seems that the idea of using doxygen xml output to generate D bindings was not that bad. I am pretty happy to see that exactly this happens in wxWidgets 2.9.4, https://github.com/wxWidgets/wxWidgets/blob/master/docs/doxygen/scripts/make_bindings.py Generating C functional wrappers is alr

Re: wxWidgets good news

2012-01-20 Thread Andrea Fontana
!!! Il giorno ven, 20/01/2012 alle 03.24 -0800, bls ha scritto: > Hi, it seems that the idea of using doxygen xml output to generate D > bindings was not that bad. I am pretty happy to see that exactly this > happens in wxWidgets 2.9.4, > https://github.com/wxWidgets/wxWidgets/blob/master/docs/

Re: Biggest Issue with D - Definition and Versioning

2012-01-20 Thread Manu
On 19 January 2012 22:52, deadalnix wrote: > You write some code and they face an error. As you are new to the > language, unless you are crazy, you'll asume that the mistake comes from > you and not from the compiler (this is an usual experience in other > languages : I almost never encounter co

Re: Biggest Issue with D - Definition and Versioning

2012-01-20 Thread bearophile
Manu: > I am quite sad that a lot of the > broken things in there now are un-fixable. If you want to write a short list of such broken things... :-) Bye, bearophile

Re: wxWidgets good news

2012-01-20 Thread Trass3r
Generating C functional wrappers is already pretty cool, but the fantastic news is SWIG output! As you may have noticed, SWIG has D support. Means : No need to manually re-create C++ classes in D. Does SWIG D support static linking by now?

Re: Message-Passing

2012-01-20 Thread Manu
On 20 January 2012 00:36, Sean Kelly wrote: > Thanks :-) If you have ideas on how it could be improved, please let me > know. > > On Jan 19, 2012, at 12:58 PM, Nathan M. Swan wrote: > > > I want to applaud Sean Kelly and everyone who worked on std.concurrency > for a great API, and wish that I c

Re: wxWidgets good news

2012-01-20 Thread Andrea Fontana
I don't think so. I use swig for d, c#, php, python but it always build shared libraries. Il giorno ven, 20/01/2012 alle 13.51 +0100, Trass3r ha scritto: > > Generating C functional wrappers is already pretty cool, but the > > fantastic news is SWIG output! As you may have noticed, SWIG has D

Re: Biggest Issue with D - Definition and Versioning

2012-01-20 Thread Manu
On 20 January 2012 14:47, bearophile wrote: > Manu: > > > I am quite sad that a lot of the > > broken things in there now are un-fixable. > > If you want to write a short list of such broken things... :-) > > Bye, > bearophile > Renaming receiveOnly() to receive() is a trivial example. I have en

Re: wxWidgets good news

2012-01-20 Thread Gour
On Fri, 20 Jan 2012 03:24:19 -0800 bls wrote: > Hi, it seems that the idea of using doxygen xml output to generate D > bindings was not that bad. I am pretty happy to see that exactly this > happens in wxWidgets 2.9.4, Thank you very much for the news!! > Generating C functional wrappers is a

Re: wxWidgets good news

2012-01-20 Thread Jimmy Cao
2012/1/20 bls > As you may have noticed, SWIG has D support. Means : No need to manually > re-create C++ classes in D. > > Holy crap. > > Ah, kudos to David Nadlinger.

Re: Biggest Issue with D - Definition and Versioning

2012-01-20 Thread deadalnix
Le 20/01/2012 13:47, bearophile a écrit : Manu: I am quite sad that a lot of the broken things in there now are un-fixable. If you want to write a short list of such broken things... :-) Bye, bearophile toString to begin with. This isn't const compliant. Just like a big part of the standa

Re: wxWidgets good news

2012-01-20 Thread bls
On 01/20/2012 05:33 AM, Jimmy Cao wrote: 2012/1/20 bls mailto:bizp...@orange.fr>> As you may have noticed, SWIG has D support. Means : No need to manually re-create C++ classes in D. Holy crap. Ah, kudos to David Nadlinger. Ya sorry David , I couldn't remember your name. Gues

Re: Message-Passing

2012-01-20 Thread jdrewsen
On Friday, 20 January 2012 at 13:10:37 UTC, Manu wrote: On 20 January 2012 00:36, Sean Kelly wrote: Thanks :-) If you have ideas on how it could be improved, please let me know. On Jan 19, 2012, at 12:58 PM, Nathan M. Swan wrote: > I want to applaud Sean Kelly and everyone who worked on

Re: byKey and byValue: properties or methods?

2012-01-20 Thread Alvaro
El 20/01/2012 10:15, Jonathan M Davis escribió: On Friday, January 20, 2012 09:58:42 Marco Leise wrote: Ah, I meant to say that getters should not modify their object. When I see "a = abc.x[i]" I would be a little surprised to find that it changes the observable state of abc. The same goes for "

Re: wxWidgets good news

2012-01-20 Thread bls
On 01/20/2012 03:24 AM, bls wrote: Hi, it seems that the idea of using doxygen xml output to generate D bindings was not that bad. I am pretty happy to see that exactly this happens in wxWidgets 2.9.4, https://github.com/wxWidgets/wxWidgets/blob/master/docs/doxygen/scripts/make_bindings.py Gene

Re: wxWidgets good news

2012-01-20 Thread bls
On 01/20/2012 04:51 AM, Trass3r wrote: Generating C functional wrappers is already pretty cool, but the fantastic news is SWIG output! As you may have noticed, SWIG has D support. Means : No need to manually re-create C++ classes in D. Does SWIG D support static linking by now? From the docs

[OT] Programming language WATs

2012-01-20 Thread Robert Clipsham
Just came across this amusing 4 minute video: https://www.destroyallsoftware.com/talks/wat Anyone have any other WATs you can do in other languages? Bonus points for WATs you can do in D. -- Robert http://octarineparrot.com/

Re: wxWidgets good news

2012-01-20 Thread Gour
On Fri, 20 Jan 2012 06:10:20 -0800 bls wrote: > Which wxWidget Version ? > IMO at least 2.9x to avoid the UNICODE - non UNICODE stress. Probably > 2.9.4 is the best choice (doxygen wise) which will arrive AFAIK in > February. I agree. > How to setup the project ? just the modified Python scrip

Re: [OT] Programming language WATs

2012-01-20 Thread Timon Gehr
On 01/20/2012 04:40 PM, Robert Clipsham wrote: Just came across this amusing 4 minute video: https://www.destroyallsoftware.com/talks/wat Anyone have any other WATs you can do in other languages? Bonus points for WATs you can do in D. I think there are no spectacular WATs in D, but I'll give

Re: [OT] Programming language WATs

2012-01-20 Thread Brad Anderson
On Fri, Jan 20, 2012 at 8:40 AM, Robert Clipsham wrote: > Just came across this amusing 4 minute video: > > https://www.**destroyallsoftware.com/talks/**wat > > Anyone have any other WATs you can do in other languages? Bonus points for > WATs you can d

Re: wxWidgets good news

2012-01-20 Thread Andrej Mitrovic
On 1/20/12, bls wrote: > Hi, it seems that the idea of using doxygen xml output to generate D > bindings was not that bad. I am pretty happy to see that exactly this > happens in wxWidgets 2.9.4, > https://github.com/wxWidgets/wxWidgets/blob/master/docs/doxygen/scripts/make_bindings.py All files

Re: Invariant and pre/post-conditions order

2012-01-20 Thread Steven Schveighoffer
On Fri, 20 Jan 2012 00:01:40 -0500, Walter Bright wrote: On 1/19/2012 8:19 PM, Steven Schveighoffer wrote: If they are related, yes it does give you more information. The out condition might not check the class data directly, but the error which caused the invariant to fail could have also

Re: byKey and byValue: properties or methods?

2012-01-20 Thread Jonathan M Davis
On Friday, January 20, 2012 15:13:51 Alvaro wrote: > Well, there is the case of std::map and its [] operator which adds an > element if it does not exist. Even if in the right hand side: > > a = map[x]; // modifies map if x was not found in it > > Maybe Marco is talking about something like that.

Re: byKey and byValue: properties or methods?

2012-01-20 Thread Steven Schveighoffer
On Fri, 20 Jan 2012 04:29:12 -0500, Peter Alexander wrote: On 20/01/12 12:57 AM, Steven Schveighoffer wrote: On Thu, 19 Jan 2012 18:41:44 -0500, Andrei Alexandrescu wrote: On 1/19/12 4:43 PM, Steven Schveighoffer wrote: On Thu, 19 Jan 2012 14:06:00 -0500, torhu wrote: If the type of by

Re: Why the Standard Library

2012-01-20 Thread Steven Schveighoffer
On Fri, 20 Jan 2012 01:46:43 -0500, Jesse Phillips wrote: On Thursday, 19 January 2012 at 22:49:52 UTC, Steven Schveighoffer wrote: It is in the works: https://github.com/schveiguy/phobos/commit/9ee5034f446877b0e78fec608271084d289f6345 -Steve Be sure to change the module declaration. O

Re: byKey and byValue: properties or methods?

2012-01-20 Thread Andrei Alexandrescu
On 1/17/12 12:48 AM, Andrei Alexandrescu wrote: I hate I must ask this: int[string] aa; foreach (k; aa.byKey) { ... } or int[string] aa; foreach (k; aa.byKey()) { ... } Thanks, Andrei "I told you" Alexandrescu I tallied the votes. Function: Mail Mantis, bearophile, Jacob Carlborg, Olivi

Re: Message-Passing

2012-01-20 Thread Sean Kelly
On Jan 20, 2012, at 5:10 AM, Manu wrote: > > I had some troubles with std.concurrency which I thought it might be nice to > address. > > Perhaps the most major problem I had was related to the concept of thread > ownership. If a spawned threads parent thread dies, it also receives a signal > t

Re: byKey and byValue: properties or methods?

2012-01-20 Thread Steven Schveighoffer
On Fri, 20 Jan 2012 12:58:28 -0500, Andrei Alexandrescu wrote: On 1/17/12 12:48 AM, Andrei Alexandrescu wrote: I hate I must ask this: int[string] aa; foreach (k; aa.byKey) { ... } or int[string] aa; foreach (k; aa.byKey()) { ... } Thanks, Andrei "I told you" Alexandrescu I tallied

Re: [OT] Programming language WATs

2012-01-20 Thread Jonathan M Davis
On Friday, January 20, 2012 15:40:43 Robert Clipsham wrote: > Just came across this amusing 4 minute video: > > https://www.destroyallsoftware.com/talks/wat Hilarious! - Jonathan M Davis

Re: byKey and byValue: properties or methods?

2012-01-20 Thread Jonathan M Davis
On Friday, January 20, 2012 11:58:28 Andrei Alexandrescu wrote: > On 1/17/12 12:48 AM, Andrei Alexandrescu wrote: > > I hate I must ask this: > > > > int[string] aa; > > foreach (k; aa.byKey) { ... } > > > > or > > > > int[string] aa; > > foreach (k; aa.byKey()) { ... } > > > > > > > > Thanks

Re: Invariant and pre/post-conditions order

2012-01-20 Thread Manfred Nowak
Walter Bright wrote: > I recently fixed the specs to define the sequence. Then the Status Quo holds. One more remark: if the intention still is, that contracts are to be seen as an executable description of at least parts of the design, then the current specification of the language does not g

Re: wxWidgets good news

2012-01-20 Thread bls
On 01/20/2012 09:02 AM, Andrej Mitrovic wrote: On 1/20/12, bls wrote: Hi, it seems that the idea of using doxygen xml output to generate D bindings was not that bad. I am pretty happy to see that exactly this happens in wxWidgets 2.9.4, https://github.com/wxWidgets/wxWidgets/blob/master/docs/do

Re: Invariant and pre/post-conditions order

2012-01-20 Thread Walter Bright
On 1/20/2012 10:42 AM, Manfred Nowak wrote: if the intention still is, that contracts are to be seen as an executable description of at least parts of the design, then the current specification of the language does not give any control over those contracts to the designers. This is because the c

Re: [OT] Programming language WATs

2012-01-20 Thread Mehrdad
On 1/20/2012 8:43 AM, Brad Anderson wrote: On Fri, Jan 20, 2012 at 8:40 AM, Robert Clipsham mailto:rob...@octarineparrot.com>> wrote: Just came across this amusing 4 minute video: https://www.destroyallsoftware.com/talks/wat Anyone have any other WATs you can do in other languages

Re: wxWidgets good news

2012-01-20 Thread Marianne gagnon
Hi, > > > > All files in that folder are dated July 2009. Is there some newer > > script you were referring to? > > > > Wish I am able to send you more recent code :( > check the Phoenix project in wxWidgets SVN. It doesn't generate SWIG though, it generates SIP. But the infrastructure could b

Re: C++ pimpl

2012-01-20 Thread Walter Bright
On 1/20/2012 2:12 AM, Robert Caravani wrote: First of all thanks for this fast answer! On 1/19/2012 12:48 PM, Roberto Caravani wrote: I think this would be a real neat and very important feature, when it comes to shared libraries. Is there any plan to implement something like that in the futur

Re: wxWidgets doxygen binding creation.

2012-01-20 Thread bls
Hi Andrej, From : http://wxphp.org/wxphp/blog/commit-of-new-version " Theres a new xml parser as I wrote in some older news that extract the details of wxWidgets *doxoygen* documentation. " -> The doxygen xml files can be used to create D bindings .

Re: byKey and byValue: properties or methods?

2012-01-20 Thread Matt Soucy
On 01/20/2012 01:43 PM, Jonathan M Davis wrote: On Friday, January 20, 2012 11:58:28 Andrei Alexandrescu wrote: On 1/17/12 12:48 AM, Andrei Alexandrescu wrote: I hate I must ask this: int[string] aa; foreach (k; aa.byKey) { ... } or int[string] aa; foreach (k; aa.byKey()) { ... } Thanks,

Re: byKey and byValue: properties or methods?

2012-01-20 Thread sclytrack
On 01/20/2012 06:58 PM, Andrei Alexandrescu wrote: On 1/17/12 12:48 AM, Andrei Alexandrescu wrote: I hate I must ask this: int[string] aa; foreach (k; aa.byKey) { ... } or int[string] aa; foreach (k; aa.byKey()) { ... } Thanks, Andrei "I told you" Alexandrescu I tallied the votes. Func

Re: byKey and byValue: properties or methods?

2012-01-20 Thread bearophile
Andrei Alexandrescu: > I tallied the votes. > > Function: Mail Mantis, bearophile, Jacob Carlborg, Olivier Pisano, Ary > Manzana, torhu. > > Property: Nick Sabalausky, Simen Kjaeraas. > > I wasn't able to discern a clear vote from the others. Please correct > the list. I vote for byKey and b

Re: [OT] Programming language WATs

2012-01-20 Thread Denis Shelomovskij
20.01.2012 19:40, Robert Clipsham пишет: Just came across this amusing 4 minute video: https://www.destroyallsoftware.com/talks/wat Good talk! But with a mistake: there are 15 delimiters in 16 element array (printing/join result), not 16.

Re: byKey and byValue: properties or methods?

2012-01-20 Thread Peter Alexander
On 20/01/12 5:58 PM, Andrei Alexandrescu wrote: I tallied the votes. Function: Mail Mantis, bearophile, Jacob Carlborg, Olivier Pisano, Ary Manzana, torhu. Property: Nick Sabalausky, Simen Kjaeraas. I wasn't able to discern a clear vote from the others. Please correct the list. I vote functi

Re: wxWidgets doxygen binding creation.

2012-01-20 Thread Andrej Mitrovic
I began porting those php scripts to D since yesterday. They are well documented and modularized so I think it's worth having a go at it. Oddly enough I've cloned the wxPhp svn repo yesterday without even knowing they've just merged these new changes in at the same time. Cool. You've mentioned tho

Re: [OT] Programming language WATs

2012-01-20 Thread Nick Sabalausky
"Robert Clipsham" wrote in message news:jfc1ts$2hck$1...@digitalmars.com... > Just came across this amusing 4 minute video: > > https://www.destroyallsoftware.com/talks/wat > OMGWTFBBQ! I ROFLed! (That really was hilarious.) > Anyone have any other WATs you can do in other languages? Bonus po

Re: wxWidgets doxygen binding creation.

2012-01-20 Thread Gour
On Fri, 20 Jan 2012 22:09:48 +0100 Andrej Mitrovic wrote: > I began porting those php scripts to D since yesterday. They are well > documented and modularized so I think it's worth having a go at it. > Oddly enough I've cloned the wxPhp svn repo yesterday without even > knowing they've just merge

Re: wxWidgets doxygen binding creation.

2012-01-20 Thread Brad Anderson
On Fri, Jan 20, 2012 at 2:43 PM, Gour wrote: > On Fri, 20 Jan 2012 22:09:48 +0100 > Andrej Mitrovic wrote: > > > I began porting those php scripts to D since yesterday. They are well > > documented and modularized so I think it's worth having a go at it. > > Oddly enough I've cloned the wxPhp sv

Bug tracking and assigned to

2012-01-20 Thread jdrewsen
So I've been thinking about helping out with fixing some bugs in dmd. I made search in the bug tracker for bugs with NEW state but quickly noticed that a lot of them are actually already being worked on or have a pending pull request. It would be great if the state was changed to ASSIGNED. I

Re: Bug tracking and assigned to

2012-01-20 Thread Nick Sabalausky
"jdrewsen" wrote in message news:ybillabaoehmexgjo...@dfeed.kimsufi.thecybershadow.net... > > So I've been thinking about helping out with fixing some bugs in dmd. I > made search in the bug tracker for bugs with NEW state but quickly noticed > that a lot of them are actually already being work

Re: Bug tracking and assigned to

2012-01-20 Thread jdrewsen
On Friday, 20 January 2012 at 22:42:59 UTC, Nick Sabalausky wrote: "jdrewsen" wrote in message news:ybillabaoehmexgjo...@dfeed.kimsufi.thecybershadow.net... So I've been thinking about helping out with fixing some bugs in dmd. I made search in the bug tracker for bugs with NEW state but quic

Re: Bug tracking and assigned to

2012-01-20 Thread Nick Sabalausky
"jdrewsen" wrote in message news:wosqwyhggkzugyfpq...@dfeed.kimsufi.thecybershadow.net... > On Friday, 20 January 2012 at 22:42:59 UTC, Nick Sabalausky wrote: >> "jdrewsen" wrote in message >> news:ybillabaoehmexgjo...@dfeed.kimsufi.thecybershadow.net... >>> >>> So I've been thinking about help

Re: Bug tracking and assigned to

2012-01-20 Thread Brad Roberts
On 1/20/2012 3:12 PM, Nick Sabalausky wrote: > "jdrewsen" wrote in message > news:wosqwyhggkzugyfpq...@dfeed.kimsufi.thecybershadow.net... >> On Friday, 20 January 2012 at 22:42:59 UTC, Nick Sabalausky wrote: >>> "jdrewsen" wrote in message >>> news:ybillabaoehmexgjo...@dfeed.kimsufi.thecybersh

Re: 64Bit compatibility warnings

2012-01-20 Thread Stewart Gordon
On 20/01/2012 00:46, Peter Alexander wrote: On 20/01/12 12:25 AM, Trass3r wrote: Could we please have at least a warning if code isn't compatible with 64Bit? It's really annoying to test out some code and having to fix a bunch of stupid uint->size_t bugs just because the author is still on a 32

Re: 64Bit compatibility warnings

2012-01-20 Thread Timon Gehr
On 01/21/2012 01:48 AM, Stewart Gordon wrote: On 20/01/2012 00:46, Peter Alexander wrote: On 20/01/12 12:25 AM, Trass3r wrote: Could we please have at least a warning if code isn't compatible with 64Bit? It's really annoying to test out some code and having to fix a bunch of stupid uint->size_t

Re: 64Bit compatibility warnings

2012-01-20 Thread Stewart Gordon
On 21/01/2012 01:16, Timon Gehr wrote: I generally like the idea of making size_t strongly typed, but that would necessitate X!size_t to become a distinct instantiation from X!uint or X!ulong. Furthermore, it would break all existing D programs that are deliberately not 64 bit aware =). You

Re: 64Bit compatibility warnings

2012-01-20 Thread Matt Soucy
On 01/20/2012 08:21 PM, Stewart Gordon wrote: On 21/01/2012 01:16, Timon Gehr wrote: I generally like the idea of making size_t strongly typed, but that would necessitate X!size_t to become a distinct instantiation from X!uint or X!ulong. Furthermore, it would break all existing D programs that

Re: 64Bit compatibility warnings

2012-01-20 Thread Matt Soucy
On 01/20/2012 08:24 PM, Matt Soucy wrote: On 01/20/2012 08:21 PM, Stewart Gordon wrote: On 21/01/2012 01:16, Timon Gehr wrote: I generally like the idea of making size_t strongly typed, but that would necessitate X!size_t to become a distinct instantiation from X!uint or X!ulong. Furthermore,

Re: byKey and byValue: properties or methods?

2012-01-20 Thread Michel Fortin
On 2012-01-20 17:58:28 +, Andrei Alexandrescu said: I tallied the votes. Function: Mail Mantis, bearophile, Jacob Carlborg, Olivier Pisano, Ary Manzana, torhu. Property: Nick Sabalausky, Simen Kjaeraas. I wasn't able to discern a clear vote from the others. Please correct the list.

Re: byKey and byValue: properties or methods?

2012-01-20 Thread Andrei Alexandrescu
On 1/20/12 7:31 PM, Michel Fortin wrote: On 2012-01-20 17:58:28 +, Andrei Alexandrescu said: I tallied the votes. Function: Mail Mantis, bearophile, Jacob Carlborg, Olivier Pisano, Ary Manzana, torhu. Property: Nick Sabalausky, Simen Kjaeraas. I wasn't able to discern a clear vote from

Re: byKey and byValue: properties or methods?

2012-01-20 Thread Michel Fortin
On 2012-01-21 01:43:17 +, Andrei Alexandrescu said: On 1/20/12 7:31 PM, Michel Fortin wrote: On 2012-01-20 17:58:28 +, Andrei Alexandrescu said: I tallied the votes. Function: Mail Mantis, bearophile, Jacob Carlborg, Olivier Pisano, Ary Manzana, torhu. Property: Nick Sabalausky,

Re: [OT] Programming language WATs

2012-01-20 Thread Andrej Mitrovic
Probably Windows-only: void main() { string a = "foo"; "foo" = "bar"; writeln(a); // "foo" assert(a == "foo"); // failure }

Re: [OT] Programming language WATs

2012-01-20 Thread Andrej Mitrovic
To give you a hint: void main() { "foo" = "bar"; writeln("foo"); }

Re: [OT] Programming language WATs

2012-01-20 Thread Zachary Lund
On 01/20/2012 08:44 PM, Andrej Mitrovic wrote: Probably Windows-only: void main() { string a = "foo"; "foo" = "bar"; writeln(a); // "foo" assert(a == "foo"); // failure } I think this is a bug. This causes a segmentation fault on Linux DMD 2.057. Plus, assigning a litera

Re: [OT] Programming language WATs

2012-01-20 Thread Jonathan M Davis
On Saturday, January 21, 2012 03:44:53 Andrej Mitrovic wrote: > Probably Windows-only: > > void main() > { > string a = "foo"; > "foo" = "bar"; > writeln(a); // "foo" > assert(a == "foo"); // failure > } Yeah. I don't understand why string literals aren't treated as fully immuta

Re: [OT] Programming language WATs

2012-01-20 Thread Nick Sabalausky
"Jonathan M Davis" wrote in message news:mailman.640.1327115503.16222.digitalmar...@puremagic.com... > On Saturday, January 21, 2012 03:44:53 Andrej Mitrovic wrote: >> Probably Windows-only: >> >> void main() >> { >> string a = "foo"; >> "foo" = "bar"; >> writeln(a); // "foo" >>

Re: [OT] Programming language WATs

2012-01-20 Thread Jonathan M Davis
On Friday, January 20, 2012 22:14:43 Nick Sabalausky wrote: > "Jonathan M Davis" wrote in message > news:mailman.640.1327115503.16222.digitalmar...@puremagic.com... > > > On Saturday, January 21, 2012 03:44:53 Andrej Mitrovic wrote: > >> Probably Windows-only: > >> > >> void main() > >> { > >>

Re: Bug tracking and assigned to

2012-01-20 Thread Nick Sabalausky
"Brad Roberts" wrote in message news:mailman.637.1327101984.16222.digitalmar...@puremagic.com... > > To be more general than paying attention to Nick's specific issues.. > paying attention to the various attributes that are > available: priority, severity, and vote count. Each of those is easy

Re: [OT] Programming language WATs

2012-01-20 Thread Adam D. Ruppe
On Saturday, 21 January 2012 at 03:18:43 UTC, Jonathan M Davis wrote: Yeah. String literals should definitely be immutable rvalues, consider this though: auto a = "hello"; a = "new"; If is("hello" == immutable(char[])), then a would be too, and the rebinding would fail. That'd be annoying.

Re: [OT] Programming language WATs

2012-01-20 Thread Timon Gehr
On 01/21/2012 04:17 AM, Jonathan M Davis wrote: On Friday, January 20, 2012 22:14:43 Nick Sabalausky wrote: "Jonathan M Davis" wrote in message news:mailman.640.1327115503.16222.digitalmar...@puremagic.com... On Saturday, January 21, 2012 03:44:53 Andrej Mitrovic wrote: Probably Windows-only

Re: [OT] destroy all software (was Programming language WATs)

2012-01-20 Thread Adam D. Ruppe
On Friday, 20 January 2012 at 15:40:44 UTC, Robert Clipsham wrote: https://www.destroyallsoftware.com/talks/wat Curious: anyone here checked out the author's screencasts? I found this video amusing so I looked at the others, but he wants money for it. Worth the ten bucks?

Re: [OT] [ot Programming language WATs

2012-01-20 Thread Adam D. Ruppe
On Friday, 20 January 2012 at 15:40:44 UTC, Robert Clipsham wrote: Just came across this amusing 4 minute video: https://www.destroyallsoftware.com/talks/wat Anyone have any other WATs you can do in other languages? Bonus points for WATs you can do in D.

Re: [OT] Programming language WATs

2012-01-20 Thread Jonathan M Davis
On Saturday, January 21, 2012 04:20:36 Adam D. Ruppe wrote: > On Saturday, 21 January 2012 at 03:18:43 UTC, Jonathan M Davis > > wrote: > > Yeah. String literals should definitely be immutable rvalues, > > consider this though: > > auto a = "hello"; > a = "new"; > > If is("hello" == immutable(c

Re: Github and Bugzilla Integration

2012-01-20 Thread Zachary Lund
Some of you may have noticed that Brad Roberts has configured bugzilla so it gets notifications from github when fixes get pushed. This makes things easier and more consistent. Just be sure and use "Issue " somewhere in the commit message when checking in a fix for bugzilla . Use "Is

Re: [OT] destroy all software (was Programming language WATs)

2012-01-20 Thread Caligo
On Fri, Jan 20, 2012 at 9:28 PM, Adam D. Ruppe wrote: > On Friday, 20 January 2012 at 15:40:44 UTC, Robert Clipsham wrote: >> >> https://www.destroyallsoftware.com/talks/wat > > > > Curious: anyone here checked out the author's screencasts? > > I found this video amusing so I looked at the others,

Re: [OT] destroy all software (was Programming language WATs)

2012-01-20 Thread Adam D. Ruppe
On Saturday, 21 January 2012 at 03:43:50 UTC, Caligo wrote: http://www.youtube.com/watch?v=VpZtX32sKVE Oh my, don't get me started on college! I'm so happy I dropped out of that waste.

Re: [OT] destroy all software (was Programming language WATs)

2012-01-20 Thread Nick Sabalausky
"Caligo" wrote in message news:mailman.643.1327117430.16222.digitalmar...@puremagic.com... > > You could watch this for free, but it's not amusing. I know, I just > graduated. > > http://www.youtube.com/watch?v=VpZtX32sKVE Just watched the first 3 minutes. Out of everything in there, there was

Re: [OT] Programming language WATs

2012-01-20 Thread Bernard Helyer
On Friday, 20 January 2012 at 15:40:44 UTC, Robert Clipsham wrote: Just came across this amusing 4 minute video: https://www.destroyallsoftware.com/talks/wat Anyone have any other WATs you can do in other languages? Bonus points for WATs you can do in D. void main() { import std.stdio;

Re: [OT] Programming language WATs

2012-01-20 Thread Caligo
On Fri, Jan 20, 2012 at 9:40 AM, Robert Clipsham wrote: > Just came across this amusing 4 minute video: > > https://www.destroyallsoftware.com/talks/wat > > Anyone have any other WATs you can do in other languages? Bonus points for > WATs you can do in D. > > -- > Robert > http://octarineparrot.co

Re: [OT] destroy all software (was Programming language WATs)

2012-01-20 Thread Nick Sabalausky
"Adam D. Ruppe" wrote in message news:rjmwboyrrzxbbsjka...@dfeed.kimsufi.thecybershadow.net... > On Saturday, 21 January 2012 at 03:43:50 UTC, Caligo wrote: >> http://www.youtube.com/watch?v=VpZtX32sKVE > > Oh my, don't get me started on college! > > I'm so happy I dropped out of that waste. I t

Re: [OT] Programming language WATs

2012-01-20 Thread Andrej Mitrovic
One of the first bugs I've filed (now 1.5+ years old): void main() { float[] arr = [1.0, 2.5, 4.0]; foreach (ref double elem; arr) { elem /= 2; } writeln(arr); // still [1, 2.5, 4] } Issue 4510

Re: [OT] Programming language WATs

2012-01-20 Thread Kapps
This issue left me with a permanent avoidance of ref foreach after encountering it the first day I used D. On 20/01/2012 10:25 PM, Andrej Mitrovic wrote: One of the first bugs I've filed (now 1.5+ years old): void main() { float[] arr = [1.0, 2.5, 4.0]; foreach (ref double elem; arr)

Re: Bug tracking and assigned to

2012-01-20 Thread Kapps
On 20/01/2012 5:26 PM, Brad Roberts wrote: To be more general than paying attention to Nick's specific issues.. paying attention to the various attributes that are available: priority, severity, and vote count. Each of those is easy to search on and sort by. I fully agree with the difficulty

Re: Bug tracking and assigned to

2012-01-20 Thread Brad Roberts
On 1/20/2012 8:33 PM, Kapps wrote: > On 20/01/2012 5:26 PM, Brad Roberts wrote: >> To be more general than paying attention to Nick's specific issues.. paying >> attention to the various attributes that are >> available: priority, severity, and vote count. Each of those is easy to >> search on

Re: [OT] destroy all software (was Programming language WATs)

2012-01-20 Thread Adam D. Ruppe
On Saturday, 21 January 2012 at 04:20:16 UTC, Nick Sabalausky wrote: The "college == good" brainwashing MUST STOP, period Aye. What's incredible is I've hard these arguments on other websites, and a *lot* of people fight it. Alas, I'm watching this video still, and it gets way too political as

Re: [OT] destroy all software (was Programming language WATs)

2012-01-20 Thread F i L
On Saturday, 21 January 2012 at 04:20:16 UTC, Nick Sabalausky wrote: "Adam D. Ruppe" wrote in message news:rjmwboyrrzxbbsjka...@dfeed.kimsufi.thecybershadow.net... On Saturday, 21 January 2012 at 03:43:50 UTC, Caligo wrote: http://www.youtube.com/watch?v=VpZtX32sKVE Oh my, don't get me start

Re: [OT] destroy all software (was Programming language WATs)

2012-01-20 Thread Nick Sabalausky
"Adam D. Ruppe" wrote in message news:ykmzlppuwncgmvgzs...@dfeed.kimsufi.thecybershadow.net... > On Saturday, 21 January 2012 at 04:20:16 UTC, Nick Sabalausky wrote: >> The "college == good" brainwashing MUST STOP, period > > Aye. What's incredible is I've hard these arguments on > other websites

Re: [OT] destroy all software (was Programming language WATs)

2012-01-20 Thread Nick Sabalausky
"F i L" wrote in message news:szaqbqghgbzolydww...@dfeed.kimsufi.thecybershadow.net... > > I never went to college and I feel no worse for wear for it. At 24, around > an age I would be graduating, I'm glad I'm not looking at spending a > quarter of my income on school loans. If you were *luck