Go to the first, previous, next, last section, table of contents.


Parámetros por defecto de un procedimiento

No es válido un caso como el siguiente (no hay sustitución dentro de las llaves) proc Show { {msg [_ "Error"] } { } }

Puede solventarse por ejemplo así:

proc Show { {msg "" } { if { $msg == ""} { set msg [_ "Error"] } } }

También sería posible esto, pero es un poco rebuscado:

proc Show [ list [list msg [_ "Error"]] ] { }


Go to the first, previous, next, last section, table of contents.