- Enhance reflection module to indicate inheritance
  - Add ability to catch errors thrown from a eval
    inside of a script
		
	
		
			
				
	
	
		
			9 lines
		
	
	
		
			245 B
		
	
	
	
		
			ChaiScript
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			245 B
		
	
	
	
		
			ChaiScript
		
	
	
	
	
	
load_module("reflection")
 | 
						|
 | 
						|
try {
 | 
						|
  eval("def `+`(x, y) \n { \n print(i); \n } \n \n var i = 10; \n \"1\" + 1;\n")
 | 
						|
  assert_false(true); // we should never get here
 | 
						|
} catch (e) {
 | 
						|
  assert_equal("Error: \"Can not find object: i\" ", e.what()); 
 | 
						|
}
 |