Mention remote interfaces forbid function args

lyvgbfh
Fast Inserter
Fast Inserter
Posts: 177
Joined: Fri Jul 10, 2020 6:48 pm
Contact:

Mention remote interfaces forbid function args

Post by lyvgbfh »

On the LuaRemote class it does not mention that defining an interface that takes a function argument is forbidden. This is implied, but not expressly clear.
... :: Any

Arguments to pass to the called function. Note that any arguments passed through the interface are a copy of the original, not a reference. Metatables are not retained, while references to LuaObjects stay intact.
Please mention that functions are forbidden. I wasted a bit of time creating an interface that took functions :?
Bilka
Factorio Staff
Factorio Staff
Posts: 3600
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Mention remote interfaces forbid function args

Post by Bilka »

Thanks for the note, added a clarifying sentence to the docs for 2.0.64.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Post Reply

Return to “Resolved Requests”