Original Post
I'm guessing I have something configured incorrectly. I have setup a system that automatically loads scripts and calls Main(). I'm having strange behavior when calling functions in main() defined outside of main. If I have the following script: I get an 'Null pointer access' error for the line 'string t = s', but if I set up the script this way: Everything runs perfectly.. Is this by design? or have I setup something incorrectly. Thanks, Scott
void test( string @ s )
{
string t = s;
}
void Main()
{
test( "this is a test" );
}
void Main()
{
test( "this is a test" );
}
void test( string @ s )
{
string t = s;
}