Uuid can only be autoloaded

set_prolog_flag(autoload, false).

use_module(library(uuid)).

uuid(X).

=> ERROR: Unknown procedure: uuid:ossp_uuid/2

This workaround works but is odd: (not in interpreter shell but in pl file):

autoload(library(uuid)).
set_prolog_flag(autoload, false).

then executing

uuid(X)

is fine.

Why is that?

Best regards,

Patrick

Because choosing between the foreign OSSP UUID implementation and a limited pure Prolog implementation depended on autoloading … Pushed a fix.

1 Like

Thank you, that was quick!

Best regards,

Patrick