A split problem

Jonathan Crapuchettes jcrapuchettes at gmail.com
Wed May 21 09:21:16 PDT 2008


I am having a problem with using split when compiled with gdc 0.25 20071215. If 
I compile the following code with gdmd it Segfaults, but if I compile it with 
dmd it runs without any errors. I need to use gdc because if its 64-bit ability. 
Can anyone suggest a work around for this problem?

/**
  * Small app for testing the split function in the std.string package.
  */
import std.stdio;
import std.string;

void main(char[][] args)
{
	char[] testData1 = "A,23.456|B,54.67518|C,51321.463516";
	writefln(split(testData1, "|"));
}



More information about the Digitalmars-d mailing list