mirror of
				https://github.com/flynx/Course-JavaScript.git
				synced 2025-10-31 03:50:10 +00:00 
			
		
		
		
	advanced topics...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									ebfcf0b573
								
							
						
					
					
						commit
						f41c472453
					
				| @ -173,6 +173,21 @@ | |||||||
| // Extending builtin types
 | // Extending builtin types
 | ||||||
| //
 | //
 | ||||||
| 
 | 
 | ||||||
|  | // Mixing builtin types
 | ||||||
|  | //
 | ||||||
|  | // In general this is impossible in JavaScript due to the lack of any 
 | ||||||
|  | // mechanism of horizontal name resolution in the inheritance chain like 
 | ||||||
|  | // multiple inheritance (hence why we call it a chain and not a tree).
 | ||||||
|  | //
 | ||||||
|  | // So there is no way, for example, to make something both an array and
 | ||||||
|  | // a function at the same time.
 | ||||||
|  | //
 | ||||||
|  | 
 | ||||||
|  | 	 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| // XXX Reflect.construct(Function, args, newConstructor)
 | // XXX Reflect.construct(Function, args, newConstructor)
 | ||||||
| // 		mainly usefull if the resulting instance has to be of a builtin 
 | // 		mainly usefull if the resulting instance has to be of a builtin 
 | ||||||
| // 		type like a function (callable) or an array...
 | // 		type like a function (callable) or an array...
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user