* removed the "primitive?" and "primitive-ref" primitives.
This commit is contained in:
		
							parent
							
								
									b74108f21c
								
							
						
					
					
						commit
						14a947e7f9
					
				
							
								
								
									
										
											BIN
										
									
								
								src/ikarus.boot
								
								
								
								
							
							
						
						
									
										
											BIN
										
									
								
								src/ikarus.boot
								
								
								
								
							
										
											Binary file not shown.
										
									
								
							|  | @ -336,20 +336,20 @@ reference-implementation: | |||
|   | ||||
| (primitive-set! 'symbol? (lambda (x) (symbol? x))) | ||||
|    | ||||
| (primitive-set! 'primitive? | ||||
|   (lambda (x) | ||||
|     (unless (symbol? x) | ||||
|       (error 'primitive? "~s is not a symbol" x)) | ||||
|     (procedure? (primitive-ref x)))) | ||||
| 
 | ||||
| (primitive-set! 'primitive-ref | ||||
|   (lambda (x) | ||||
|     (unless (symbol? x) | ||||
|       (error 'primitive-ref "~s is not a symbol" x)) | ||||
|     (let ([v (primitive-ref x)]) | ||||
|       (unless (procedure? v) | ||||
|         (error 'primitive-ref "~s is not a primitive" x)) | ||||
|       v))) | ||||
| ;(primitive-set! 'primitive? | ||||
| ;  (lambda (x) | ||||
| ;    (unless (symbol? x) | ||||
| ;      (error 'primitive? "~s is not a symbol" x)) | ||||
| ;    (procedure? (primitive-ref x)))) | ||||
| ; | ||||
| ;(primitive-set! 'primitive-ref | ||||
| ;  (lambda (x) | ||||
| ;    (unless (symbol? x) | ||||
| ;      (error 'primitive-ref "~s is not a symbol" x)) | ||||
| ;    (let ([v (primitive-ref x)]) | ||||
| ;      (unless (procedure? v) | ||||
| ;        (error 'primitive-ref "~s is not a primitive" x)) | ||||
| ;      v))) | ||||
| 
 | ||||
| (primitive-set! 'primitive-set! | ||||
|   (lambda (x v) | ||||
|  |  | |||
|  | @ -505,8 +505,6 @@ | |||
|       [$make-call-with-values-procedure $make-cwv-procedure (core-prim . $make-call-with-values-procedure)] | ||||
|       [$make-values-procedure $make-values-procedure (core-prim . $make-values-procedure)] | ||||
|       [primitive-set! primitive-set!-label (core-prim . primitive-set!)] | ||||
|       [primitive? primitive?-label (core-prim .  primitive?)] | ||||
|       [primitive-ref primitive-ref-label (core-prim .  primitive-ref)] | ||||
|       [$$apply     $$apply-label    (core-prim . $$apply)] | ||||
|       [$arg-list     $arg-list-label    (core-prim . $arg-list)] | ||||
|       [$interrupted? $interrupted?-label (core-prim .  $interrupted?)] | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Abdulaziz Ghuloum
						Abdulaziz Ghuloum