Re: A thing I should know myself....
On Fri, Jun 22, 2018 at 5:13 PM Robert Goldman wrote: > I have a library that provides DEF-UNIMPLEMENTED as a macro for defining > stub functions. When you compile a file with unimplemented functions, you > get a warning of the type FOO:UNIMPLEMENTED-STUB in my library FOO. > > I'd like to put in an asdf system definition a file spec something like > this: > > (:file "file-with-stubs" > :method (:around (o c) (handler-bind ((foo:unimplemented-stub > #'(lambda (c) > (print c) > (muffle-warning c)) > (call-next-method))) > > but, of course, the package foo doesn't exist when this is read (although > I could put (asdf:load-system "foo") upstream of the enclosing defsystem). > > This isn't a case that's nicely consistent with Faré's hack for > translating strings or keyword symbols, nor does it seem easy to use > find-symbol for this purpose. > You could still use FIND-SYMBOL: (handler-bind ((error (lambda (c) (when (typep c (find-symbol x :foo)) (a))
Re: A thing I should know myself....
Not sure why that took 8 days to post... On 14 Jun 2018, at 12:50, Robert Goldman wrote: I have a library that provides `DEF-UNIMPLEMENTED` as a macro for defining stub functions. When you compile a file with unimplemented functions, you get a warning of the type `FOO:UNIMPLEMENTED-STUB` in my library `FOO`. I'd like to put in an asdf system definition a file spec something like this: ``` (:file "file-with-stubs" :method (:around (o c) (handler-bind ((foo:unimplemented-stub #'(lambda (c) (print c) (muffle-warning c)) (call-next-method))) ``` but, of course, the package `foo` doesn't exist when this is read (although I could put `(asdf:load-system "foo")` upstream of the enclosing defsystem). This isn't a case that's nicely consistent with Faré's hack for translating strings or keyword symbols, nor does it seem easy to use `find-symbol` for this purpose. Thoughts? thanks, r
Re: gentoo package broken
On 22 Jun 2018, at 12:52, Konstanski, Carlos wrote: The gentoo packaging for the new ASDF version is broken. !!! Fetched file: asdf-3.3.2.2.tar.gz VERIFY FAILED! !!! Reason: Filesize does not match recorded size !!! Got: 484988 !!! Expected: 487861 -- Carlos Konstanski I am afraid that I have no idea who packages ASDF for Gentoo, nor how it is done. You should probably find the packager through the metadata on the package and ask them what has gone wrong. I wonder if they just grabbed the very latest (3.3.2.2, which note is **not** a release: the release is 3.3.2), without updating the checksum... Sorry I can't be of more assistance. Best, r
gentoo package broken
The gentoo packaging for the new ASDF version is broken. !!! Fetched file: asdf-3.3.2.2.tar.gz VERIFY FAILED! !!! Reason: Filesize does not match recorded size !!! Got: 484988 !!! Expected: 487861 -- Carlos Konstanski
A thing I should know myself....
I have a library that provides `DEF-UNIMPLEMENTED` as a macro for defining stub functions. When you compile a file with unimplemented functions, you get a warning of the type `FOO:UNIMPLEMENTED-STUB` in my library `FOO`. I'd like to put in an asdf system definition a file spec something like this: ``` (:file "file-with-stubs" :method (:around (o c) (handler-bind ((foo:unimplemented-stub #'(lambda (c) (print c) (muffle-warning c)) (call-next-method))) ``` but, of course, the package `foo` doesn't exist when this is read (although I could put `(asdf:load-system "foo")` upstream of the enclosing defsystem). This isn't a case that's nicely consistent with Faré's hack for translating strings or keyword symbols, nor does it seem easy to use `find-symbol` for this purpose. Thoughts? thanks, r