renamed __assocPut: to __put_assoc:
This commit is contained in:
		| @ -211,10 +211,10 @@ class Set(Collection) | |||||||
| 		^ass | 		^ass | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	(* __assocPut: is a special internal method used by VM to add an association | 	(* __put_assoc: is a special internal method used by VM to add an association | ||||||
| 	 * to a dictionary with the dictionary/association expression notation. | 	 * to a dictionary with the dictionary/association expression notation. | ||||||
| 	 * :{ :( 1, 20 ), :( #moo, 999) } *) | 	 * :{ :( 1, 20 ), :( #moo, 999) } *) | ||||||
| 	method __assocPut: assoc | 	method __put_assoc: assoc | ||||||
| 	{ | 	{ | ||||||
| 		| hv ass bs index ntally key | | 		| hv ass bs index ntally key | | ||||||
|  |  | ||||||
|  | |||||||
| @ -4136,11 +4136,11 @@ static int compile_dictionary_expression (moo_t* moo) | |||||||
| 			if (TOKEN_TYPE(moo) == MOO_IOTOK_ASSPAREN) | 			if (TOKEN_TYPE(moo) == MOO_IOTOK_ASSPAREN) | ||||||
| 			{ | 			{ | ||||||
| 				moo_oow_t si; | 				moo_oow_t si; | ||||||
| 				static moo_ooch_t msg[] = { '_', '_', 'a','s','s','o','c','P','u','t',':' }; | 				static moo_ooch_t msg[] = { '_', '_','p','u','t','_','a','s','s','o','c',':' }; /* don't put '\0' at the back */ | ||||||
| 				moo_oocs_t x; | 				moo_oocs_t x; | ||||||
|  |  | ||||||
| 				x.ptr = msg; | 				x.ptr = msg; | ||||||
| 				x.len = 11; | 				x.len = MOO_COUNTOF(msg); | ||||||
| 				/* [ATTENTION]  | 				/* [ATTENTION]  | ||||||
| 				 *  if the method returns self, i don't need DUP_STACKTOP and POP_STACKTOP. | 				 *  if the method returns self, i don't need DUP_STACKTOP and POP_STACKTOP. | ||||||
| 				 *  if the method retruns something else, DUP_STACKTOP and POP_STACKTOP is needed | 				 *  if the method retruns something else, DUP_STACKTOP and POP_STACKTOP is needed | ||||||
|  | |||||||
| @ -1159,7 +1159,7 @@ enum moo_synerrnum_t | |||||||
| 	MOO_SYNERR_WHILE,         /* while expected */ | 	MOO_SYNERR_WHILE,         /* while expected */ | ||||||
| 	MOO_SYNERR_NOASSKEY,      /* missing association key */ | 	MOO_SYNERR_NOASSKEY,      /* missing association key */ | ||||||
| 	MOO_SYNERR_NOASSVALUE,    /* missing association value */ | 	MOO_SYNERR_NOASSVALUE,    /* missing association value */ | ||||||
| 	MOO_SYNERR_NOASSOC,       /* missing association */ | 	MOO_SYNERR_NOASSOC        /* missing association */ | ||||||
| }; | }; | ||||||
| typedef enum moo_synerrnum_t moo_synerrnum_t; | typedef enum moo_synerrnum_t moo_synerrnum_t; | ||||||
|  |  | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user