Le 7 septembre 2022 19:07:10 GMT+02:00, zimoun <[email protected]> a
écrit :
>Hi,
>
>Well, the field reads,
>
>+ (license (package-home-page qtbase))))
>
>so why is the compiler accepting that? Is a warning raised?
>
No warning because the compiler has no way to know you don't want to do that.
license is a field, and fields don't have a specific type except for convention.
package-home-page will read a field from another object, return a perfectly
valid Scgeme object (a string) and Scheme is happy to put it in the license
field. Why would it care? (:
It fails much later when something tries to read the license field and gets a
string it treats as a license object.