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 #4705 is a reply to message #4692] | 
			Sun, 20 August 2006 21:33    | 
		 
		
			
				
				
				
					
						  
						Werner
						 Messages: 234 Registered: May 2006  Location: Cologne / Germany
						
					 | 
					Experienced Member  | 
					 | 
		 
		 
	 | 
 
	
		| 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   
 
Mirek
  |  
  
 
Apologies for being insistent   , but might I suggest that you reconsider your decision    ? 
 
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    . 
 
Werner 
		
		
		
 |  
	| 
		
	 | 
 
 
 |  
  
 
Goto Forum:
 
 Current Time: Tue Nov 04 05:01:50 CET 2025 
 Total time taken to generate the page: 0.05170 seconds 
 |