Re: std.array.split - Template instantiating error

2015-04-18 Thread Steven Schveighoffer via Digitalmars-d-learn
On 4/18/15 4:18 AM, nrgyzer wrote: array.d(1510): Error not a property splitter(range, sep).array sample.d(6): Error template instance std.array.split!(string, char) error instantiating Are you using -property switch? Looks like std.array does not obey property switch requirements. I

Re: std.array.split - Template instantiating error

2015-04-18 Thread nrgyzer via Digitalmars-d-learn
On Saturday, 18 April 2015 at 13:00:59 UTC, Steven Schveighoffer wrote: On 4/18/15 4:18 AM, nrgyzer wrote: array.d(1510): Error not a property splitter(range, sep).array sample.d(6): Error template instance std.array.split!(string, char) error instantiating Are you using -property switch?

Re: std.array.split - Template instantiating error

2015-04-18 Thread nrgyzer via Digitalmars-d-learn
On Saturday, 18 April 2015 at 08:13:00 UTC, Rikki Cattermole wrote: On 18/04/2015 8:08 p.m., nrgyzer wrote: Hi, I've the following source: import std.array : split; import std.stdio : writeln; void main() { string myString = Hello World; string[] splitted = myString.split( ); } But

Re: std.array.split - Template instantiating error

2015-04-18 Thread Rikki Cattermole via Digitalmars-d-learn
On 18/04/2015 8:08 p.m., nrgyzer wrote: Hi, I've the following source: import std.array : split; import std.stdio : writeln; void main() { string myString = Hello World; string[] splitted = myString.split( ); } But when I compile the code above, I'm getting the following error:

Re: std.array.split - Template instantiating error

2015-04-18 Thread biozic via Digitalmars-d-learn
On Saturday, 18 April 2015 at 08:08:41 UTC, nrgyzer wrote: Hi, I've the following source: import std.array : split; import std.stdio : writeln; void main() { string myString = Hello World; string[] splitted = myString.split( ); } But when I compile the code above, I'm getting the