import-from behaves differently when imported symbol does not exist in the source package
Tried in SBCL:
(uiop:define-package #:P0)
(uiop:define-package #:P1 (:import-from #:P0 #:sym0))
Executing above interns SYM0
into P0
.
(defpackage #:P0)
(defpackage #:P1 (:import-from #:P0 #:sym0))
Executing above raises an error with the option to intern. Shouldn't uiop:define-package
behave same as defpackage
?