| 
									
										
										
										
											2022-12-05 21:46:47 -05:00
										 |  |  | # https://github.com/godotengine/godot/issues/64171 | 
					
						
							| 
									
										
										
										
											2023-05-15 04:06:43 -07:00
										 |  |  | # https://github.com/godotengine/godot/issues/60145 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | var s = "abc" | 
					
						
							|  |  |  | var sn = &"abc" | 
					
						
							| 
									
										
										
										
											2022-12-05 21:46:47 -05:00
										 |  |  | 
 | 
					
						
							|  |  |  | func test(): | 
					
						
							|  |  |  | 	print("Compare ==: ", "abc" == &"abc") | 
					
						
							|  |  |  | 	print("Compare ==: ", &"abc" == "abc") | 
					
						
							|  |  |  | 	print("Compare !=: ", "abc" != &"abc") | 
					
						
							|  |  |  | 	print("Compare !=: ", &"abc" != "abc") | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	print("Concat: ", "abc" + &"def") | 
					
						
							|  |  |  | 	print("Concat: ", &"abc" + "def") | 
					
						
							|  |  |  | 	print("Concat: ", &"abc" + &"def") | 
					
						
							| 
									
										
										
										
											2023-05-15 04:06:43 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	match "abc": | 
					
						
							|  |  |  | 		&"abc": | 
					
						
							|  |  |  | 			print("String matched StringName literal") | 
					
						
							|  |  |  | 		_: | 
					
						
							|  |  |  | 			print("no Match") | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	match &"abc": | 
					
						
							|  |  |  | 		"abc": | 
					
						
							|  |  |  | 			print("StringName matched String literal") | 
					
						
							|  |  |  | 		_: | 
					
						
							|  |  |  | 			print("no Match") | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	match "abc": | 
					
						
							|  |  |  | 		sn: | 
					
						
							|  |  |  | 			print("String matched StringName") | 
					
						
							|  |  |  | 		_: | 
					
						
							|  |  |  | 			print("no match") | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	match &"abc": | 
					
						
							|  |  |  | 		s: | 
					
						
							|  |  |  | 			print("StringName matched String") | 
					
						
							|  |  |  | 		_: | 
					
						
							|  |  |  | 			print("no match") |