Hello John, thank you for the report. It has been a long time since I created the JSON Agena port. So just for clarification, let us take this example: > import json > data := [ > 'nul' ~ json.nil, # <--------- > 'city' ~ 'Tel Aviv', > 'iscapital' ~ false, > 'founded' ~ 1909, > 'details' ~ ['population' ~ 467875, 'area' ~ 52] > ] We have, correctly: > s := json.encode(data): {"nul":null,"iscapital":false,"city":"Tel Aviv","details":{"population":467875," area":52},"founded":1909} here is the bug:...
Hello John, thank you for the report. It has been a long time since I created the JSON Agena port. So just for clarification, let us take this example: import json data := 'nul' ~ json.nil, # <--------- 'city' ~ 'Tel Aviv', 'iscapital' ~ false, 'founded' ~ 1909, 'details' ~ ['population' ~ 467875, 'area' ~ 52 ] We have, correctly: s := json.encode(data): {"nul":null,"iscapital":false,"city":"Tel Aviv","details":{"population":467875," area":52},"founded":1909} here is the bug: json.decode(s): [city...
Hello John, thank you for the report. It has been a long time since I created the JSON Agena port. So just for clarification, let us take this example: import json data := 'nul' ~ json.nil, # <--------- 'city' ~ 'Tel Aviv', 'iscapital' ~ false, 'founded' ~ 1909, 'details' ~ ['population' ~ 467875, 'area' ~ 52 ] We have, correctly: s := json.encode(data): {"nul":null,"iscapital":false,"city":"Tel Aviv","details":{"population":467875," area":52},"founded":1909} here is the bug: json.decode(s): [city...
Hello John, thank you for the report. So just for clarification, let us take this example: import json data := 'nul' ~ json.nil, # <--------- 'city' ~ 'Tel Aviv', 'iscapital' ~ false, 'founded' ~ 1909, 'details' ~ ['population' ~ 467875, 'area' ~ 52 ] We have, correctly: s := json.encode(data): {"nul":null,"iscapital":false,"city":"Tel Aviv","details":{"population":467875," area":52},"founded":1909} but here is the bug: json.decode(s): [city ~ Tel Aviv, details ~ [area ~ 52, population ~ 467875],...
Hi, you will find the Lua 5.4.8 WarpIN installer plus the sources for OS/2 and the DOS distribution in the "Lua for OS2 and DOS" folder. Have fun ! Alex
Hi, you might use enclosing SQUARE brackets: / create table pos; -> not need for that / pos := [strings.find('abc from abc', 'from')]; print(pos); [5, 8] Yours, Alex
Just download 4.9.1, Duke. The edition also includes a working Linux 64-bit edition of the gdi package. That was a very peculiar behaviour of Agena in Linux, obviously. Windows, Solaris, OS/2 & DOS behave differently: The library.agn file included calls to functions, like trim, actually an alias like some few others, that were defined lateron in the file, at its bottom. Obviously, Linux does not love this. I am really glad that this bug could be solved so easily. Thanks again for reporting. This...
Just download 4.9.1, Duke. The edition also includesa working Linux 64-bit edition of the gdi package. That was a very peculiar behaviour of Agena in Linux, obviously. Windows, Solaris, OS/2 & DOS behave differently: The library.agn file included calls to functions, like trim, actually an alias like somefew others, that were defined lateron in the file, at its bottom. Obviously, Linux does not like this. I am really glad that this bug could be solved so easily. Thanks again for reporting. This really...