mirror of
https://github.com/janet-lang/janet
synced 2026-11-24 16:17:10 +00:00
Remove check for function calls to enable all types,
even nil. Now any value can be called as a function, usually looking itself up in an associative data structure.
This commit is contained in:
1 parent
6f3bc3d577
commit
2a79d2e749
3 files changed
+5
-10
No files matched your search
@@ -323,8 +323,6 @@ typedef enum JanetType {
|
||||
#define JANET_TFLAG_DICTIONARY (JANET_TFLAG_TABLE | JANET_TFLAG_STRUCT)
|
||||
#define JANET_TFLAG_LENGTHABLE (JANET_TFLAG_BYTES | JANET_TFLAG_INDEXED | JANET_TFLAG_DICTIONARY)
|
||||
#define JANET_TFLAG_CALLABLE (JANET_TFLAG_FUNCTION | JANET_TFLAG_CFUNCTION)
|
||||
#define JANET_TFLAG_FUNCLIKE (JANET_TFLAG_CALLABLE | JANET_TFLAG_INDEXED | JANET_TFLAG_DICTIONARY | \
|
||||
JANET_TFLAG_KEYWORD | JANET_TFLAG_SYMBOL)
|
||||
|
||||
/* We provide three possible implementations of Janets. The preferred
|
||||
* nanboxing approach, for 32 or 64 bits, and the standard C version. Code in the rest of the
|
||||
|
||||
Reference in new issue
Block a user