[GRASS-dev] GRASS 7 raster coding best practices

Hamish hamish_b at yahoo.com
Sun May 4 06:14:52 EDT 2008

Yann Chemin wrote:
> OK, if I get it right,
> input->required=YES
> is the same as:
> input->guisection=_("Required")
> therefore the second line is useless.

no, they are not at all the same. the second line is useless all on its
own, all it does is put that option in a tab of some name, in this case
the programmer happened to call it "Required", but that name means
nothing to the parser.

input->required= is what is important for the parser.
input->guisection= just picks some tab name to use.

> In the same way, is the following identical too?
> input->required=NO
> is it the same as below?
> input->guisection=_("Optional")

again, no. they are two totally separate things.


Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

More information about the grass-dev mailing list