Created
December 16, 2015 20:26
-
-
Save tkaemming/4a3d3672e8bf7816365e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bad = string.byte(arg[1], 1, 4) | |
print(bad) | |
good = {string.byte(arg[1], 1, 4)} | |
print(good) | |
print(unpack(good)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ted@estoque % lua assignment.lua "hello world" | |
104 | |
table: 0x7ff4e3d03900 | |
104 101 108 108 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment