Chris,
On Wednesday 07 December 2005 00:51, chris mungall wrote:
> > There is an undocumented call
> >
> > '$qlf_info'(+File, -CurrentVersion, -FileVersion, -WordSize, -Files)
> >
> > With mostly obvious meaning. WordSize is either 32 or 64. Files is a
> > list of files compiled into the QLF file, so you need to recompile if
> > one of the files is newer than the .qlf file or CurrentVersion >
> > FileVersion.
>
> This fixes my problem, thanks!
>
> > I guess the ideal is something like
> >
> > load_files(Files, [cached(true)])
> >
> > and make sure load_files/2 does all the things you want (create a .qlf
> > file if there is none or it is out of date or the wrong version, load
> > it otherwise).
>
> That would be nice, but I'm happy with the $qlf_info/5 solution for
> now, provided it's stable
I think it must do for now. Being a $xyz predicate it is by definition
not stable. As I guess this will only be in one part of your code it
shouldn't be too hard to update if at someday this will be replaced with
a clean interface.
Cheers --- Jan
|