This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] c++/11734


On Wed, Jun 23, 2010 at 7:25 PM, Doug Evans <dje@google.com> wrote:

> "c::foo" looks enough like an objc symbol that decode_objc will call
> lookup_symbol ("c::foo")

its possibly worth noting that c::foo is not really a valid
objective-c selector/method name

a method which would contain unnamed message pieces (not really sure
the correct wording)
which would lead to '::' also must end in a colon.

so the following method is valid:

- (int) c:(int)a :(int)b foo:(int)c;
{
  return a + b + c;
}

which would equal 'c::foo:'

while 'foo' is a valid for a name for a method which has no parameters
and does not end in a colon.
you can't mix and match parameter taking message pieces and
non-paramater accepting ones in the same message,
they either do or they don't accept parameters.

and making it foo:(void) isn't valid either.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]