[m-users.] Undefined predicate in C FFI code, present in generated C file.
Julien Fischer
jfischer at opturion.com
Thu Sep 21 20:01:59 AEST 2023
On Thu, 21 Sep 2023, Zoltan Somogyi wrote:
> And a second by-the-way: the fact that compiler writers are also subject to this
> kind of error is why some compilers, when reporting some undefined entity,
> now include in the error message a list of entities of the same kind that have
> sort-of-similar names. I will think about adding something similar to mmc,
> if I can find some publicly available algorithm for this kind of similarity checking.
> (I don't think simple edit distance would be helpful in this case, because
> I think it would generate too many misleading recommendations.)
GCC is using a variant of edit distance for this purpose.
See: <https://github.com/gcc-mirror/gcc/blob/master/gcc/spellcheck.cc>
clang was certainly using something similar a while ago. (It could still
be, I haven't check recently.)
Julien.
More information about the users
mailing list