[mtasc] Code in MTASC and MM producing different results

Robert Edgar robert.edgar at epresenterplus.com
Fri Sep 2 08:24:02 CEST 2005


Hi there,
I have a problem with a piece of code that is producing different results
when compiled with MTASC compared with MM.

Basically the code is something like this (rearranged and simplified for
posting)

switch(str.charAt(0)){  
	case '\'':
		trace("found a quoted string")
	break; 
	default: 
		trace("not a quoted string")
	break; 
}


When I pass it "'HelloWorld'" under MM it will trace a quoted string, under
MTASC it will trace not a quoted string.

The issue seems that under MTASC \' in the case statement is treated as 2
characters

Anyone know why/can confirm it's a prb ...



PS When will the next official build of MTASC be available - really want it
but compiling the src for various reasons is not an alternative for me.

Rob





More information about the mtasc mailing list