This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
immibis's profile picture

Events are limited to 5 parameters.

Started by immibis, 09 December 2012 - 08:31 PM
immibis #1
Posted 09 December 2012 - 09:31 PM
Events are limited to 5 parameters, and any extra ones are discarded.
Example:

os.queueEvent("a", "b", "c", "d", "e", "f", "g", "h")
evt = {os.pullEvent()}
print(table.concat(evt, ", "))
prints:

a, b, c, d, e, f
instead of:

a, b, c, d, e, f, g, h
Sammich Lord #2
Posted 09 December 2012 - 11:40 PM
I noticed this as well, at the time I thought it was meant to be that way, but it gets annoying when you can only have 5 parameters. I wonder how Cloudy is going to respond to this.
Cloudy #3
Posted 10 December 2012 - 12:05 AM
Probably by fixing it :P/> will look into later.
KaoS #4
Posted 10 December 2012 - 01:52 AM
can you store a table in an event? that seems the easy solution to me although I understand that bugs need to be ironed out

EDIT: derp, i just read this thread. seems I was wrong…. serialize?