That’s an interesting idea. I think it should be even possible to create a new, temporary module with the “library” class property from any imported library and a dummy module that only sets that property. I’d have to dig a bit in the module documentation to remember how but I think it’s possible to hack something up. Whether it’s a stable thing I have no idea.
Unfortunately…
No ![]()
I don’t dare make such an assumption. You’d think and I had thought that modules would be widely adopted but it seems, no. Lots of legacy code and even modern code in ILP doesn’t use modules. Anyway it’s yet another restriction imposed on the user and I don’t want to do that.
I don’t know. Maybe I should consider it. I was just unpleasantly surprised at some point to realise how little Prolog code “in the wild” doesn’t use modules. I think SWI packs are an exception maybe. Don’t know for sure.
Unfortunately I have to accept that Prolog modules are … not great. I use them my self all the time, I mean I never write any Prolog code that isn’t in a module anymore but it seems there’s enough fiddliness around them that many people simply don’t bother.