Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.11.0 #1002

Draft
wants to merge 41 commits into
base: main
Choose a base branch
from
Draft

0.11.0 #1002

wants to merge 41 commits into from

Conversation

Sainan
Copy link
Member

@Sainan Sainan commented Nov 2, 2024

  • Added preprocessor with $alias directive
  • Added compile-time evaluated statement $assert
  • Added warning for unused local variables
  • Export is no longer deprecated but now implies constness
  • Compile-time conditionals can now be equality checks
  • Fixed implicit conversion of booleans to strings outside of concats

Standard library:

  • Added buffer library
  • Added table.invert, table.dedup/deduplicate, table.deduped/deduplicated, table.values
  • Added crypto.crc32c
  • Added optional 'binary' parameter to crypto.md5
  • Added ffi.alloc, ffi.write, ffi.read
  • Added UDP support to socket.connect
  • Added socket.isudp, socket.udpserver
  • string.split's needle parameter now defaults to "" instead of ","
  • socket.listen & socket.bind can now be bound to a specific IP address
  • io.part now returns 'parent, name' if part argument is omitted

@Sainan Sainan force-pushed the 0.11.0 branch 3 times, most recently from 168cc3c to 8737921 Compare November 8, 2024 21:30
@Sainan Sainan force-pushed the 0.11.0 branch 4 times, most recently from 856e560 to 8779121 Compare November 19, 2024 07:40
@Sainan Sainan force-pushed the 0.11.0 branch 3 times, most recently from d7eaad3 to eb1b0e0 Compare November 30, 2024 10:14
@Sainan Sainan force-pushed the 0.11.0 branch 2 times, most recently from 821729b to fee9d67 Compare December 3, 2024 04:10
@Sainan Sainan force-pushed the 0.11.0 branch 5 times, most recently from 172a6fb to 3e6e32b Compare January 23, 2025 03:53
Sainan added 25 commits February 8, 2025 14:42
This reverts commit b8043e3.
$alias done = end \
              end
$alias msg = "hello"

function f() do
    print(msg)
done
f() --> hello
$alias add(a, b) = a + b

print(add(1, 2)) --> 3
This was an accidental semantic change from PUC-Lua due to boolean concatenation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant