function ‘trace_context’ out of scope in mult-cld.lua
![](https://secure.gravatar.com/avatar/a5c08a43051c146e1e17a5e4e7d052f4.jpg?s=120&d=mm&r=g)
Hi,
the following code calls ‘trace_context()’ which is created only
later on line 254. This is triggered if the first arg of
‘context()’ is of type ‘table’.
······
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 21-10-2010 2:38, Philipp Gesang wrote:
Hi,
the following code calls ‘trace_context()’ which is created only later on line 254. This is triggered if the first arg of ‘context()’ is of type ‘table’.
······
············································ function test (str) context.starttext() context(str) context.stoptext() return 0 end
t = {"a", "b"} return test(t)
····· ············································
Moving l. 254 to around l. 114 in mult-cld.lua fixes it for me.
should go higher ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Philipp Gesang