Looking for a Lua alternative

Stefan Koch uplink.coder at googlemail.com
Thu Dec 21 12:27:31 UTC 2023


On Thursday, 21 December 2023 at 00:39:11 UTC, mw wrote:

> ImportC cannot compile Janet for this issue:
> https://issues.dlang.org/show_bug.cgi?id=24291

One Problem with Janet is that it uses computed gotos which is a 
gcc extension
The code it complains about looks like:
```C
     /* opcode -> label lookup if using clang/GCC */
#ifdef JANET_USE_COMPUTED_GOTOS
     static void *op_lookup[255] = {
         &&label_JOP_NOOP,
         &&label_JOP_ERROR,
```

As you can see &&label is not valid C11.
Which is what the import C parser complains about.


More information about the Digitalmars-d mailing list