Re: Best way to make Until! into string

2010-06-24 Thread div0
On 23/06/2010 23:14, bearophile wrote: div0: and now with 2.047 I've been bitten by the removal of struct initialisers. What do you mean? Bye, bearophile curly brace initialisers: struct c4 { float[4]_vals; } c4 dat = { [0,0,0,0] }; Needs to be changed to use a constructo

Re: Best way to make Until! into string

2010-06-23 Thread Jonathan M Davis
Jonathan M Davis wrote: > div0 wrote: > >>> > [... snip of UTF-8 stuff ...] >> > > The UTF char stuff is all painfully complicated, and I _think_ that I more > or less understand it, but I suspect that I don't understand it all that > well. It would be nice if the there were a page in the docs s

Re: Best way to make Until! into string

2010-06-23 Thread bearophile
div0: > and now with 2.047 I've been > bitten by the removal of struct initialisers. What do you mean? Bye, bearophile

Re: Best way to make Until! into string

2010-06-23 Thread div0
On 22/06/2010 23:05, Jonathan M Davis wrote: Oh my, you caveman! ;) I'd have to go look at all of the changelogs to even have a clue of what's been changed since then. Oh well, I guess that it means that you don't have to worry about stuff changing on you each upgrade by sticking to the same vers

Re: Best way to make Until! into string

2010-06-22 Thread Jonathan M Davis
div0 wrote: >> [... snip of UTF-8 stuff ...] > The UTF char stuff is all painfully complicated, and I _think_ that I more or less understand it, but I suspect that I don't understand it all that well. It would be nice if the there were a page in the docs somewhere that really explained it well

Re: Best way to make Until! into string

2010-06-22 Thread div0
On 22/06/2010 19:26, Jonathan M Davis wrote: div0 wrote: On 22/06/2010 07:29, Jonathan M Davis wrote: Okay. If you call until like so str.until('\"') you get a Until!(pred,string,char). I want to turn that into a string. array() doesn't seem to do the trick right now. It used to work, but no

Re: Best way to make Until! into string

2010-06-22 Thread Jonathan M Davis
div0 wrote: > On 22/06/2010 07:29, Jonathan M Davis wrote: >> Okay. If you call until like so >> >> str.until('\"') >> >> you get a Until!(pred,string,char). I want to turn that into a string. >> array() doesn't seem to do the trick right now. It used to work, but now >> it gives me >> >> main.d(4

Re: Best way to make Until! into string

2010-06-22 Thread div0
On 22/06/2010 07:29, Jonathan M Davis wrote: Okay. If you call until like so str.until('\"') you get a Until!(pred,string,char). I want to turn that into a string. array() doesn't seem to do the trick right now. It used to work, but now it gives me main.d(47): Error: template std.array.array(R

Re: Best way to make Until! into string

2010-06-22 Thread Jonathan M Davis
Philippe Sigaud wrote: >> > I got this error also while installing 2.047. I think the new definition > of a forward range asks for a .save() member. And I guess some ranges > where not converted. std.range.repeat is one, like cycle. It seems like > Until is another. > > Maybe for repeat/cycle that

Re: Best way to make Until! into string

2010-06-22 Thread Philippe Sigaud
On Tue, Jun 22, 2010 at 08:38, Jonathan M Davis wrote: > Jonathan M Davis wrote: > > > Okay. If you call until like so > > > > str.until('\"') > > > > you get a Until!(pred,string,char). I want to turn that into a string. > > array() doesn't seem to do the trick right now. It used to work, but now

Re: Best way to make Until! into string

2010-06-22 Thread Jonathan M Davis
Jonathan M Davis wrote: > Okay. If you call until like so > > str.until('\"') > > you get a Until!(pred,string,char). I want to turn that into a string. > array() doesn't seem to do the trick right now. It used to work, but now > it gives me > > main.d(47): Error: template std.array.array(Range

Best way to make Until! into string

2010-06-22 Thread Jonathan M Davis
Okay. If you call until like so str.until('\"') you get a Until!(pred,string,char). I want to turn that into a string. array() doesn't seem to do the trick right now. It used to work, but now it gives me main.d(47): Error: template std.array.array(Range) if (isForwardRange! (Range)) does not m