Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » tutorial check completed - "bugs" and bug
Re: tutorial check completed - "bugs" and bug [message #4712 is a reply to message #4705] Sun, 20 August 2006 21:44 Go to previous messageGo to previous message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
Werner wrote on Sun, 20 August 2006 20:33

luzr wrote on Sun, 20 August 2006 20:23

Werner wrote on Sun, 20 August 2006 05:55

There is a minor "bug" in tutorial "Gui14", "Gui15", "Gui20a", "Gui20b", and "Gui20c":

The respective line
typedef MyApp[Window] CLASSNAME;

is unnecessary.



That is true, but in this case, I think I will keep it as it is. Adding this typedef for GUI class is a good practice in U++.... (because you soon will need some THISBACK anyway Smile

Mirek


Apologies for being insistent Embarassed , but might I suggest that you reconsider your decision Rolling Eyes ?

After all the tutorials are not production code, or are they? They are meant to demonstrate a certain topic. And here the KISS principle applies: Keep it short and simple! If you do prefer to retain the line in question - and it goes without saying that your "good practice" argument is compelling - please consider to document this line. There are probably a lot of users like me who are not professional programmers and have to strive hard to analyze code undocumented to a large extent Shocked .

Werner



May I suggest, that it should just mentioned somewhere with big letters that "typedef is not "a must" but "a good practice" for THISBACK macro callbacks"

[Updated on: Sun, 20 August 2006 21:48]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Minor "bug" in "tutorial / Gui08, Gui09"
Next Topic: OcxConnectionPointContainer
Goto Forum:
  


Current Time: Wed May 15 05:19:32 CEST 2024

Total time taken to generate the page: 0.02460 seconds