Decided: () is our nil/undef
This commit is contained in:
		
							parent
							
								
									23da396614
								
							
						
					
					
						commit
						fedde03f1e
					
				
							
								
								
									
										6
									
								
								ell.c
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								ell.c
									
									
									
									
									
								
							| @ -908,8 +908,10 @@ defn (fn_set) { | |||||||
| 	if ((value = name->next)) | 	if ((value = name->next)) | ||||||
| 		return set (ctx, name->value, value); | 		return set (ctx, name->value, value); | ||||||
| 
 | 
 | ||||||
| 	// FIXME: how do we represent a nil value here?
 | 	// We return an empty list for a nil value
 | ||||||
| 	return check (ctx, (*result = new_clone (get (ctx, name->value)))); | 	if (!(value = get (ctx, name->value))) | ||||||
|  | 		return check (ctx, (*result = new_list (NULL))); | ||||||
|  | 	return check (ctx, (*result = new_clone (value))); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| defn (fn_list) { | defn (fn_list) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user