abc()->widget();
abc() presumably returns a pointer to an object that has a widget method. But what if it doesn't have a pointer available?
Programmer: Doctor, it hurts when I do this.
Doctor: So don't do that!
now if abc returned a reference rather than a pointer....
Dale
No comments:
Post a Comment