Branch: Tag:

2020-07-18

2020-07-18 10:05:24 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler [Typechecker]: Added operator find_lfun.

This operator returns the type for the specified lfun in
the first argument. Typical intended use is for type-
checking of operators.

Fixes some of #10048.

151:    * run-time types.    */    PIKE_T_OPERATOR = 0x0080, +  PIKE_T_FIND_LFUN = 0x0180, /* Look up an lfun in an object type. */      /*    * The following types are only used in compile-time types and
389:   #define tDeprecated(X) tAttr("deprecated", X)   #define tUtf8Str tAttr("utf8", tStr8)    + #define tFindLFun(X, LFUN) "\200\001" X LFUN "\0" +    #define tSimpleCallable tOr3(tArray,tFunction,tObj)   #define tCallable tOr3(tArr(tSimpleCallable),tFunction,tObj)