The Common Lisp Condition System by Michał “phoe” Herda
Author:Michał “phoe” Herda
Language: eng
Format: epub
ISBN: 9781484261347
Publisher: Apress
Note that our macro needed to expand into a progn in order to accommodate more than one generated form. We can see that the superclass list in defclass now contains the name of the condition class and that the :report option has been rendered into its separate print-object method . In addition, we return the name of the condition from the final form, as dictated by the Common Lisp standard.
For clarity, we will separate our macro into two logical parts. The first will be a function named define-condition-make-report-method that will be used for generating the defmethod print-object form .(defun define-condition-make-report-method (name report-option)
(let* ((condition (gensym "CONDITION"))
(stream (gensym "STREAM"))
(report (second report-option))
(report-form (if (stringp report)
`(write-string ,report ,stream)
`(funcall #',report ,condition ,stream))))
`(defmethod print-object ((,condition ,name) ,stream)
,report-form)))
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7808)
Grails in Action by Glen Smith Peter Ledbrook(7719)
Configuring Windows Server Hybrid Advanced Services Exam Ref AZ-801 by Chris Gill(6818)
Azure Containers Explained by Wesley Haakman & Richard Hooper(6818)
Running Windows Containers on AWS by Marcio Morales(6338)
Kotlin in Action by Dmitry Jemerov(5090)
Microsoft 365 Identity and Services Exam Guide MS-100 by Aaron Guilmette(5058)
Combating Crime on the Dark Web by Nearchos Nearchou(4631)
Microsoft Cybersecurity Architect Exam Ref SC-100 by Dwayne Natwick(4590)
Management Strategies for the Cloud Revolution: How Cloud Computing Is Transforming Business and Why You Can't Afford to Be Left Behind by Charles Babcock(4437)
The Ruby Workshop by Akshat Paul Peter Philips Dániel Szabó and Cheyne Wallace(4323)
The Age of Surveillance Capitalism by Shoshana Zuboff(3979)
Python for Security and Networking - Third Edition by José Manuel Ortega(3884)
The Ultimate Docker Container Book by Schenker Gabriel N.;(3542)
Learn Windows PowerShell in a Month of Lunches by Don Jones(3528)
Learn Wireshark by Lisa Bock(3508)
Mastering Python for Networking and Security by José Manuel Ortega(3376)
Mastering Azure Security by Mustafa Toroman and Tom Janetscheck(3355)
Blockchain Basics by Daniel Drescher(3324)
