3 Aug 2004 02:00
Re: use special syntax for method pointers?
I know this is jumping into the conversation pretty late, but I figure better late than never... On Wed, 14 Jul 2004 17:08:48 +0100, John Wilson <tug@...> wrote: > > On 14 Jul 2004, at 16:05, jastrachan@... wrote: > > > On 14 Jul 2004, at 12:58, Wilson, Greg wrote: > >> Hi James. I vote for solving the problem by requiring the > >> parentheses, even when there are no arguments (if for no > >> other reason than the Principle of Least Surprise). > > > > Whether we use mandatory or optional parenthesis isn't really the > > point of this thread :). I think I explained it badly, I'll try once > > more... > > > > > > [snip] > > > Does that help clear it up? Whether we use mandatory parenthesis on > > methods with no arguments or not, we still have this issue I think. > > The issue really is about confusion between method pointers and bean > > properties and making the syntax to 'create a reference to an objects > > method' should maybe be more explicit to avoid confusion? In C/C++ > > the & is used to create a pointer to something hence my thinking of > > > > object.&methodName > > > > though we could always have some new method(Continue reading)
RSS Feed