Its hardly showing any signs of me being an ass, I've been quite reasonable in explaining my question numerous time despite your condescension.
The only thing I was wrong about was
this.something
not working inside a class when referencing a
members variables.
The following:
1 2
|
// following gives a compile error but is there a way
// to make it work?
|
was to inform the readers that I know that method
didn't work and thats all.
Ill try to restate the question so you might finally understand it:
How do you pass a members variable as a default argument to a member function?
1 2 3 4 5 6 7
|
class String
{
public:
int rfind( const char *, int position = this.length );
private:
int length;
}
|
this example was just to show what method I've tried to use and to further demonstrate my question
ONLY.
Are you admitting that this question is too complex for you to understand and therefore need further information to understand what I'm asking?
If so, your first reply should have clearly portrayed that, rather then your actual post being:
"this
is a pointer, not an object
this->"
From that post on, I replied to your post accordingly, etc, depending on your reply. My mistake with
this.something
still doesn't change my question since
this->something
as the parameters default value still wouldn't work and therefore correcting that mistake
would't answer my question and
should have been an additional note to accompany your answer if you had one.