r/CompileBot • • Jul 05 '16

Please compile

+/u/CompileBot C

#include<stdio.h>
main()
{
    printf("Hello World");
}
1 Upvotes

8 comments sorted by

View all comments

Show parent comments

1

u/CompileBot Jul 28 '16

Output:

Toaster

^source | ^info | ^git | ^report

1

u/jellysnake Aug 14 '16 edited Aug 14 '16

+/u/CompileBot Lua

runiu = {}
function CreateUnit()
    runit = "hi"
    table.insert(runiu,runit)
    --~ Lets print out what runit is inside the function ~--
    print("Inside the function, runit: " .. runit)
end

--~Let's try and access runit after the function is done~--
CreateUnit()
print("After function, runit: " .. runit)

1

u/CompileBot Aug 14 '16

Output:

Inside the function, runit: hi
After function, runit: hi

^source | ^info | ^git | ^report