Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
cmucl
cmucl
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 27
    • Issues 27
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 2
    • Merge Requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • cmucl
  • cmuclcmucl
  • Issues
  • #63

Closed
Open
Created Apr 07, 2018 by Michał Herda@mherda🤔

DEFUN + DEFINE-CONDITION = Warning: Undefined type MACHINE-ERROR

With a file with contents:

(defun foo ()
  (define-condition machine-error (error) 
    ((machine-name 
      :reader machine-error-machine-name)) 
    (:report (lambda (condition stream) 
	       (format stream "There is a problem with ~A." 
		       (machine-error-machine-name condition))))))

Issuing (compile-file #P"f.lisp") results in:

; 

; Warning: Undefined type MACHINE-ERROR
; 

; 
; 
; File: /Users/ldbeth/f.lisp

; In: DEFUN FOO => DEFINE-CONDITION MACHINE-ERROR

;   (DEFINE-CONDITION MACHINE-ERROR (ERROR)
;     (#)
;     (:REPORT #))
; --> PROGN DEFMETHOD PROGN PCL::LOAD-DEFMETHOD LIST* LIST* LAMBDA FUNCTION 
; --> MACROLET PCL::FAST-LEXICAL-METHOD-FUNCTIONS 
; --> PCL::BIND-FAST-LEXICAL-METHOD-MACROS MACROLET 
; --> PCL::BIND-LEXICAL-METHOD-FUNCTIONS PCL::CALL-NEXT-METHOD-BIND LET FLET 
; --> PCL::WITH-REBOUND-ORIGINAL-ARGUMENTS LET PCL::BIND-ARGS 
; ==>
;   (LET* (#)
;     (DECLARE #)
;     (DECLARE #)
;     (BLOCK MACHINE-ERROR-MACHINE-NAME #))
; Warning: Undefined type MACHINE-ERROR
; ; ; [Last message occurs 2 times]


; Warning: This type is undefined:
;   MACHINE-ERROR
; 

; Compilation unit finished.
;   4 warnings

;; =====

Edited Apr 21, 2018 by Raymond Toy
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None