9 Mar
2011
9 Mar
'11
2:41 p.m.
font-dum.lua contains the following code snippet: local reencodings = { } fonts.enc.reencodings = reencodings local function specialreencode(tfmdata,value) local encoding = value and reencodings[value] .... end 1. Why is the assignment fonts.enc.reencodings = reencodings and not the other way round? Similar definitions in the same file use more "logical" looking assignments like e.g. "local setups = fonts.protrusions.setups" 2. How does it work? Why is the local table variable "reencodings" in the function specialreencode able to retrieve values stored later in fonts.enc.reencodings? -- Ulrike Fischer