enumAttribs

<dedtype>:enumAttribs(func)

Scorre tutti gli attributi <dedtype> e per ciascuno chiama la funzione <func> che riceve come parametro un attributo.

Esempio 105. Esempio <dedtype>:enumAttribs()

function stampaAttributi(tipo)
   tipo:enumAttribs(function(attr)
             print(attr:name())
   end)
end