Øyvind Harboe wrote:
> >> set _CHIPNAME [defaultval $CHIPNAME at91r40008]
> >
> > Significantly better.
> 
> It's trivial to do something shorter, like:
> 
> defaultval CHIPNAME at91r40008

Much better still!


> The advantage of the more verbose syntax is that it
> is more self documenting:
> 
> set _CHIPNAME [defaultval $CHIPNAME at91r40008]
> 
> Any preference?

The shorter one. But it is rather confusing to deal with the
different types of Tcl variables (or whatever they are?) which
have the same names, but obviously do different things.

E.g. what exactly is the difference between _CHIPNAME and $CHIPNAME ?

Would it be possible to get rid of one of the two classes of names?


//Peter
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to