class irc_event{ irc_event(irc_connection@ c) // this class automatically chops up the message { @conn=@c; // apparently the following code will make AngelScript segfault rather than throw an error prefix=command=raw_string=params="NULL"; } void set_prefix(string@ i) {prefix=i;} void set_command(string@[] i) {command=i;} void set_raw_string(string@ i) {raw_string=i;} void set_params(string@ i) {params=i;} string@ get_prefix() {return prefix; } string@[] get_command() {return command; } string@ get_raw_string(){return raw_string; } string@ get_params() {return params; } irc_connection@ get_connection(){return conn;} irc_connection@ conn; string prefix; string@[] command; string raw_string; string params;}
Here is what GDB gave me.
Program received signal SIGSEGV, Segmentation fault.0x00000000004c35ab in asCCompiler::Error (this=0x7fffffffd940, msg=0x7b1fd0 "Can't implicitly convert from 'string' to 'string@[]'.", node=0x0) at ../../source/as_compiler.cpp:28302830 script->ConvertPosToRowCol(node->tokenPos, &r, &c);