This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATHC, GOLD]: Allow evaluation without a result section
- From: Ian Lance Taylor <iant at google dot com>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: binutils at sourceware dot org
- Date: Thu, 30 Sep 2010 17:38:59 -0700
- Subject: Re: [PATHC, GOLD]: Allow evaluation without a result section
- References: <m3sk0renqo.fsf@redhat.com>
Nick Clifton <nickc@redhat.com> writes:
> (arg_value): Provide a default value for the arg_section_pointer
> parameter.
I would rather avoid using default arguments.
> * script.h (eval_with_dot): Provide default values for
> result_section and result_alignment parameters.
Here too. Instead just pass explicit NULLs.
I've come to believe that default arguments are not a good idea, as they
essentially introduce a new version of the function with the same name.
They save a little typing but they obscure what is happening.
Can you send diffs with -u instead of -c?
Ian