TAILIEUCHUNG - The Art of the Metaobject Protocol- P5

The Art of the Metaobject Protocol- P5: The work described here is synthetic in nature, bringing together techniques and insights from several branches of computer. | protocol Design 117 Making it possible for the user to write this method places a significant burden on all involved protocol designer implementor and user alike. First the protocol designer must specify an enormous amount of detail about the behavior of the standard method on apply-method that call-next-method and next-method-p must be introduced the existence of apply-methods and that call-next-method must use it to properly handle the next methods that lexical function bindings are performed with add-function-bindings that variable bindings are performed with add-variable-bindings and that eval must be called to actually run the method body. Specifying this detail results in a corresponding lack of freedom for the implementor. The implementor must not only provide the required functionality under the required names but also lose the standard method on apply-method as a place to put implementation-specific code that is certain not to be overridden. Finally even with the detailed specification writing the method is a lot of work for the user. It certainly seems to be more work than is appropriate for the simple task of adding two lexical function bindings to the scope of method bodies. In addition two user programs both of which override the standard method on apply-method suppose each adds a distinct lexical function cannot be combined easily. If as protocol designers we expect that adding new lexical bindings will be a common activity we can easily provide this capability by extending the protocol with a new subprotocol under apply-method. extra-function-bindings method arguments next-methods This generic function is a specializable functional protocol that returns a list of . function-name function-value pairs. All primary methods of the generic function apply-method are required to consult extra-function-bindings to find out what extra lexical function bindings should be added to the scope of a method before executing it. The standard method on .

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.