Re: conv text and pure

2013-10-28 Thread Jonathan M Davis
On Monday, October 28, 2013 13:40:03 Daniel Davidson wrote: > On Thursday, 24 October 2013 at 00:02:30 UTC, bearophile wrote: > > Jonathan M Davis: > >> Progress is being made on that however (as evidenced by the > >> fact that format can now be pure in the beta for 2.064). > > > > Now two of the

Re: conv text and pure

2013-10-28 Thread Daniel Davidson
On Thursday, 24 October 2013 at 00:02:30 UTC, bearophile wrote: Jonathan M Davis: Progress is being made on that however (as evidenced by the fact that format can now be pure in the beta for 2.064). Now two of the most common "offenders" of pure/nothrow in my high level code are iota() and a

Re: conv text and pure

2013-10-24 Thread H. S. Teoh
On Thu, Oct 24, 2013 at 11:36:09AM -0700, H. S. Teoh wrote: > On Thu, Oct 24, 2013 at 12:12:48AM +0200, Daniel Davidson wrote: > [...] > > Here is the self-contained code (I hope) that you can see it > > happening in: > > http://pastebin.com/hb0Dz50r > [...] > > Hmm. Somebody claimed that 2.064 be

Re: conv text and pure

2013-10-24 Thread H. S. Teoh
On Thu, Oct 24, 2013 at 12:12:48AM +0200, Daniel Davidson wrote: [...] > Here is the self-contained code (I hope) that you can see it > happening in: > http://pastebin.com/hb0Dz50r [...] Hmm. Somebody claimed that 2.064 beta has made text() pure, but that's only partially true, because it calls to

Re: conv text and pure

2013-10-23 Thread H. S. Teoh
On Thu, Oct 24, 2013 at 12:12:48AM +0200, Daniel Davidson wrote: > On Wednesday, 23 October 2013 at 21:37:25 UTC, H. S. Teoh wrote: > >On Wed, Oct 23, 2013 at 11:17:30PM +0200, Daniel Davidson wrote: [...] > >>So, when you say it is pure, what are you referring to. I think pure > >>could be specifi

Re: conv text and pure

2013-10-23 Thread bearophile
Jonathan M Davis: Progress is being made on that however (as evidenced by the fact that format can now be pure in the beta for 2.064). Now two of the most common "offenders" of pure/nothrow in my high level code are iota() and arr.dup. Bye, bearophile

Re: conv text and pure

2013-10-23 Thread Jonathan M Davis
On Thursday, October 24, 2013 00:12:48 Daniel Davidson wrote: > On Wednesday, 23 October 2013 at 21:37:25 UTC, H. S. Teoh wrote: > > On Wed, Oct 23, 2013 at 11:17:30PM +0200, Daniel Davidson wrote: > >> On Wednesday, 23 October 2013 at 20:18:39 UTC, Andrej Mitrovic > >> > >> wrote: > >> >On 10/23/

Re: conv text and pure

2013-10-23 Thread Dicebot
On Wednesday, 23 October 2013 at 22:12:50 UTC, Daniel Davidson wrote: No, pure can't be specified as a block. You can only mark a function as pure. Any attribute can be specified as a block, as well as with colon notation.

Re: conv text and pure

2013-10-23 Thread Daniel Davidson
On Wednesday, 23 October 2013 at 21:37:25 UTC, H. S. Teoh wrote: On Wed, Oct 23, 2013 at 11:17:30PM +0200, Daniel Davidson wrote: On Wednesday, 23 October 2013 at 20:18:39 UTC, Andrej Mitrovic wrote: >On 10/23/13, Daniel Davidson wrote: >>Great, thanks. What is the best way to get on that versi

Re: conv text and pure

2013-10-23 Thread Adam D. Ruppe
On Wednesday, 23 October 2013 at 21:17:31 UTC, Daniel Davidson wrote: const(S)) make sure your struct's toString are all marked pure too.

Re: conv text and pure

2013-10-23 Thread Andrej Mitrovic
On 10/23/13, H. S. Teoh wrote: > Furthermore, the above function is a template function, which means the > compiler will perform attribute inference on it. So provided textImpl > has no impure operations, it should be inferred as pure, unless args has > some impure methods in it that's being used

Re: conv text and pure

2013-10-23 Thread Ali Çehreli
On 10/23/2013 02:17 PM, Daniel Davidson wrote: On Wednesday, 23 October 2013 at 20:18:39 UTC, Andrej Mitrovic wrote: On 10/23/13, Daniel Davidson wrote: Great, thanks. What is the best way to get on that version for the Mac (pointer to instructions)? You can download the beta here: http://fo

Re: conv text and pure

2013-10-23 Thread H. S. Teoh
On Wed, Oct 23, 2013 at 11:17:30PM +0200, Daniel Davidson wrote: > On Wednesday, 23 October 2013 at 20:18:39 UTC, Andrej Mitrovic > wrote: > >On 10/23/13, Daniel Davidson wrote: > >>Great, thanks. What is the best way to get on that version for the > >>Mac (pointer to instructions)? > > > >You can

Re: conv text and pure

2013-10-23 Thread Daniel Davidson
On Wednesday, 23 October 2013 at 20:18:39 UTC, Andrej Mitrovic wrote: On 10/23/13, Daniel Davidson wrote: Great, thanks. What is the best way to get on that version for the Mac (pointer to instructions)? You can download the beta here: http://forum.dlang.org/thread/52605c84.6010...@walterbrig

Re: conv text and pure

2013-10-23 Thread Andrej Mitrovic
On 10/23/13, Daniel Davidson wrote: > Great, thanks. What is the best way to get on that version for > the Mac (pointer to instructions)? You can download the beta here: http://forum.dlang.org/thread/52605c84.6010...@walterbright.com

Re: conv text and pure

2013-10-23 Thread Daniel Davidson
On Wednesday, 23 October 2013 at 19:56:26 UTC, Andrej Mitrovic wrote: On Wednesday, 23 October 2013 at 19:55:26 UTC, Daniel Davidson wrote: Should text be pure? It's pure in 2.064, the upcoming release. Great, thanks. What is the best way to get on that version for the Mac (pointer to instr

Re: conv text and pure

2013-10-23 Thread Andrej Mitrovic
On Wednesday, 23 October 2013 at 19:55:26 UTC, Daniel Davidson wrote: Should text be pure? It's pure in 2.064, the upcoming release.