man proc:
args est le seule argument spécial utilisé en tcl
en gros il crée une liste des différent arguments qu'il contient
quand arg contient {a b c d}
args contiendra {{a b c d}} donc une double liste
edit:
Citation :If the last formal argument has the name args, then a call to the procedure may contain more actual arguments than the procedure has formals. In this case, all of the actual arguments starting at the one that would be assigned to args are combined into a list (as if the list command had been used); this combined value is assigned to the local variable args.
args est le seule argument spécial utilisé en tcl
en gros il crée une liste des différent arguments qu'il contient
quand arg contient {a b c d}
args contiendra {{a b c d}} donc une double liste
edit:
Code :
% proc test arg {return $arg}
% test "a b c d"
a b c d
% proc test args {return $args}
% test "a b c d"
{a b c d}
C'est en reconnaissant ses erreurs que l'on progresse