TAILIEUCHUNG - The Art of the Metaobject Protocol- P9

The Art of the Metaobject Protocol- P9: The work described here is synthetic in nature, bringing together techniques and insights from several branches of computer. | Generic Functions and Methods validate-superclass 241 The superclass argument is a class metaobject. Values This generic function returns true or false. Purpose This generic function is called to determine whether the class superclass is suitable for use as a superclass of class. This generic function can be be called by the implementation or user code. It is called during class metaobject initialization and reinitialization before the direct superclasses are stored. If this generic function returns false the initialization or reinitialization will signal an error. Methods validate-superclass Primary Method .class class superclass class This method returns true in three situations i If the superclass argument is the class named t ii if the class of the class argument is the same as the class of the superclass argument or iii if the classes one of the arguments is standard-class and the class of the other is funcallable-standard-class. In all other cases this method returns false. This method can be overridden. Remarks Defining a method on validate-superclass requires detailed knowledge of of the internal protocol followed by each of the two class metaobject classes. A method on validate-superclass which returns true for two different class metaobject classes declares that they are compatible. 242 writer-method-class Chapter 6 writer-method-class Generic Function Syntax writer-method-class class direct-slot fcrest initargs Arguments The class argument is a class metaobject. The direct-slot argument is a direct slot definition metaobject. i The initargs argument is a list of initialization arguments and values. Values The value returned is a class metaobject. Purpose This generic function is called to determine the class of writer methods created during class initialization and reinitialization. The result must be a subclass of standardwriter-method. The initargs argument must be the same as will be passed to make-instance to create the reader method. The initargs .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.