Selective type loading?

Help requests on developing Logtalk applications

Moderator: Paulo Moura

Post Reply
DamienDeville
Posts: 7
Joined: Fri Jan 03, 2020 8:13 pm

Selective type loading?

Post by DamienDeville » Sat Jan 11, 2020 7:38 pm

Is there a way to selectively load only some types of the types libraries (e.g., list) but not all?

Paulo Moura
Logtalk developer
Posts: 512
Joined: Sat May 05, 2007 8:35 am
Location: Portugal
Contact:

Re: Selective type loading?

Post by Paulo Moura » Sat Jan 11, 2020 10:17 pm

The entities in the “types” library form a small hierarchy. Still, check the library notes and also the notes on the “basic_types” library. The later library loads a subset of the types loaded by the “types” hierarchy. If those are enough, then you can replace on your loader file the “logtalk_load(types(loader))” by “logtalk_load(basic_types(loader))”.
Paulo Moura
Logtalk developer

Post Reply