Re: How to use pure in D 2.0 question on Stack Overflow?

2009-06-17 Thread bearophile
Jason House: >Many functions in Phobos are not marked as pure even though they could be. >That limits pure's use for me)< If you list them then Walter may later fix Phobos. Bye, bearophile

Re: Andrei writes "The Case for D"

2009-06-17 Thread BCS
Hello JMNorris, And the medical journal article? It needs to show that contributing to this open source app in D cures erectile disfunction.

Re: Andrei writes "The Case for D"

2009-06-17 Thread JMNorris
Andrei Alexandrescu wrote in news:h18i1p $16l...@digitalmars.com: > So these > votes seem to reflect a prior dislike to anything D and the immediate > negative voting of anything related to it. I wonder how such this could > be addressed. Two killer apps written in D plus one article in a med

Re: Fwd: A public apology.

2009-06-17 Thread Steve Teale
superdan Wrote: > Jarrett Billingsley Wrote: > > > On Wed, Jun 17, 2009 at 6:42 AM, Alexander > > Pánek wrote: > > > Jarrett Billingsley wrote: > > >> > > >> I am sorry. > > > > > > I am not. I’m just thankful for being proven wrong when necessary. > > > > > > Also: wtf, Jarrett. Is that really y

Re: Fwd: A public apology.

2009-06-17 Thread BCS
Hello superdan, superdan's always rite. Ah, one of my favorate words http://www.merriam-webster.com/dictionary/right http://www.merriam-webster.com/dictionary/rite http://www.merriam-webster.com/dictionary/wright http://www.merriam-webster.com/dictionary/write for a given sound, it has more

Re: Fwd: A public apology.

2009-06-17 Thread superdan
Jarrett Billingsley Wrote: > On Wed, Jun 17, 2009 at 6:42 AM, Alexander > Pánek wrote: > > Jarrett Billingsley wrote: > >> > >> I am sorry. > > > > I am not. I’m just thankful for being proven wrong when necessary. > > > > Also: wtf, Jarrett. Is that really you? > > That was me on beer. I'm an a

Re: How to use pure in D 2.0 question on Stack Overflow?

2009-06-17 Thread Jason House
Jeroen Dirks Wrote: > Does anyone know the answer to this D related question on SO? > > http://stackoverflow.com/questions/1008803/how-to-use-pure-in-d-2-0/ addMsg is not marked pure and pure functions can't call impure functions... I'm not sure if addMsg can be marked pure or not. It does not

Re: Fwd: A public apology.

2009-06-17 Thread superdan
Steve Teale Wrote: > Jarrett Billingsley Wrote: > > > On Mon, Jun 15, 2009 at 10:40 PM, superdan wrote: > > > == Quote from Jarrett Billingsley (jarrett.billings...@gmail.com)'s > > > article > > >> Sorry, I thought you were degrading yourself.  I should have read more > > >> carefully. > > > >

Re: How to use pure in D 2.0 question on Stack Overflow?

2009-06-17 Thread Walter Bright
BCS wrote: Reply to Jeroen, Does anyone know the answer to this D related question on SO? http://stackoverflow.com/questions/1008803/how-to-use-pure-in-d-2-0/ DMD can't tell that the method call is safe even though it is inpure. Also, the purity of a function is determined by its signatur

Re: How to use pure in D 2.0 question on Stack Overflow?

2009-06-17 Thread bearophile
Jeroen Dirks: > Does anyone know the answer to this D related question on SO? > http://stackoverflow.com/questions/1008803/how-to-use-pure-in-d-2-0/ I like this answer: >you may have found case where the compiler's semantic analysis is not as good >as your brain's.< "pure" is something that has

Re: How to use pure in D 2.0 question on Stack Overflow?

2009-06-17 Thread BCS
Reply to Jeroen, Does anyone know the answer to this D related question on SO? http://stackoverflow.com/questions/1008803/how-to-use-pure-in-d-2-0/ DMD can't tell that the method call is safe even though it is inpure.

How to use pure in D 2.0 question on Stack Overflow?

2009-06-17 Thread Jeroen Dirks
Does anyone know the answer to this D related question on SO? http://stackoverflow.com/questions/1008803/how-to-use-pure-in-d-2-0/

Re: Fwd: [OT] A public apology.

2009-06-17 Thread Jarrett Billingsley
On Wed, Jun 17, 2009 at 3:00 PM, Nick Sabalausky wrote: > "BCS" wrote in message > news:78ccfa2d425018cbbd5558039...@news.digitalmars.com... >> Reply to Nick, >>> >>> (And why in the world is my ng client randomly deciding not to quote >>> the replied-to message and make me do it manually? Weird..

Re: From Reddit

2009-06-17 Thread Frits van Bommel
bearophile wrote: Frits van Bommel: [LDC] [1]: It currently does not realize the array load can be done before the function call, but I submitted a patch to LLVM for that. (This is why it currently needs to be split up, so that LDC emits the load before the function call)< I guess you mean

Re: Fwd: [OT] A public apology.

2009-06-17 Thread Nick Sabalausky
"BCS" wrote in message news:78ccfa2d425018cbbd5558039...@news.digitalmars.com... > Reply to Nick, >> >> (And why in the world is my ng client randomly deciding not to quote >> the replied-to message and make me do it manually? Weird...) >> > > My client only quotes what is slected (if anything is

Re: Fwd: A public apology.

2009-06-17 Thread BCS
Reply to Nick, "Jarrett Billingsley" wrote in message news:mailman.281.1245252324.13405.digitalmar...@puremagic.com... On Wed, Jun 17, 2009 at 6:42 AM, Alexander Pánek wrote: Jarrett Billingsley wrote: I am sorry. I am not. I’m just thankful for being proven wrong when necessary. Also

Re: Fwd: A public apology.

2009-06-17 Thread Nick Sabalausky
>"Jarrett Billingsley" wrote in message > >news:mailman.281.1245252324.13405.digitalmar...@puremagic.com... >On Wed, Jun 17, 2009 at 6:42 AM, Alexander >Pánek wrote: >> Jarrett Billingsley wrote: >>> >>> I am sorry. >> >> I am not. I’m just thankful for being proven wrong when necessary. >> >> Al

Re: From Reddit

2009-06-17 Thread bearophile
Frits van Bommel: >[LDC] [1]: It currently does not realize the array load can be done before the >function call, but I submitted a patch to LLVM for that. (This is why it >currently needs to be split up, so that LDC emits the load before the function >call)< I guess you mean this: http://llvm

Re: From Reddit

2009-06-17 Thread Frits van Bommel
Frits van Bommel wrote: bearophile wrote: Some are ignorant (the author concluded that dmd can't optimize tail recursion by trying it with the non-tail-recursive factorial function; and I took the time to explain him!).< If I compile this D2 program with DMD: import std.stdio: printf; import

Re: Fwd: A public apology.

2009-06-17 Thread Jarrett Billingsley
On Wed, Jun 17, 2009 at 6:42 AM, Alexander Pánek wrote: > Jarrett Billingsley wrote: >> >> I am sorry. > > I am not. I’m just thankful for being proven wrong when necessary. > > Also: wtf, Jarrett. Is that really you? That was me on beer. I'm an apologetic drunk. Should this be telling me someth

Re: From Reddit

2009-06-17 Thread Frits van Bommel
bearophile wrote: Some comments are patently false (such as the one that you must compile with dmc to call C functions on Windows).< Is this true? I have seen many times people here answer that code has to be compiled with DMC, etc. If I am wrong I'll fix the text. I thought this was pretty

From Reddit

2009-06-17 Thread bearophile
I have written some comments about the article written by Andrei Alexandrescu: http://www.reddit.com/r/programming/comments/8t7s1/the_case_for_d_the_other_side_of_the_coin/ Andrei has commented some things on Reddit, I think it's better to move the discussion here. If there are wrong things in

string on stack

2009-06-17 Thread davidl
I find lot of tango code uses stack as an optimization for using less heap, e.g. concat strings. It's astonishingly common, and painful to make it const correct, thus D2 hostile. Ideas? -- 使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/

Re: D Wiki

2009-06-17 Thread Alexander Pánek
Brad Roberts wrote: This has come up before and never really gone anywhere. I've considered setting up a new, modern, wiki for us to migrate to. Prowiki has a number of limitations that annoy me at least. The biggest is it's history management sucks. Looking at what changed over time is eithe

Re: Fwd: A public apology.

2009-06-17 Thread Alexander Pánek
Jarrett Billingsley wrote: I am sorry. I am not. I’m just thankful for being proven wrong when necessary. Also: wtf, Jarrett. Is that really you?