Delegates: Difference between revisions
Content deleted Content added
Line 1,415: | Line 1,415: | ||
elseif (which == 3) then return "Hello" -- string |
elseif (which == 3) then return "Hello" -- string |
||
elseif (which == 4) then return function() end -- function |
elseif (which == 4) then return function() end -- function |
||
elseif (which == 5) then return { nothing = function( |
elseif (which == 5) then return { nothing = function() end } -- table (without "thing") |
||
elseif (which == 6) then return coroutine.create(function() end) -- thread |
elseif (which == 6) then return coroutine.create(function() end) -- thread |
||
elseif (which == 7) then return io.open("delegates.lua","r") -- userdata (if exists, or nil) |
elseif (which == 7) then return io.open("delegates.lua","r") -- userdata (if exists, or nil) |