12 lines
		
	
	
		
			133 B
		
	
	
	
		
			ChaiScript
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			133 B
		
	
	
	
		
			ChaiScript
		
	
	
	
	
	
attr bob::z
 | 
						|
def bob::bob() { }
 | 
						|
 | 
						|
auto x = bob();
 | 
						|
x.z = 10;
 | 
						|
 | 
						|
auto y = clone(x);
 | 
						|
y.z = 20;
 | 
						|
 | 
						|
assert_equal(10, x.z)
 | 
						|
assert_equal(20, y.z)
 |