Conflicts: CMakeLists.txt include/chaiscript/dispatchkit/boxed_value.hpp include/chaiscript/language/chaiscript_eval.hpp
		
			
				
	
	
		
			15 lines
		
	
	
		
			246 B
		
	
	
	
		
			ChaiScript
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			246 B
		
	
	
	
		
			ChaiScript
		
	
	
	
	
	
auto x = [1, 2, 3]
 | 
						|
assert_equal(3, x.size())
 | 
						|
 | 
						|
 | 
						|
 | 
						|
// Make sure vector elements are copied into place for consistency with
 | 
						|
// map inplace construction
 | 
						|
var i = 1;
 | 
						|
var y = [i];
 | 
						|
 | 
						|
assert_equal(1, y[0]);
 | 
						|
i = 3;
 | 
						|
assert_equal(3, i);
 | 
						|
assert_equal(1, y[0]);
 |