![]() It will be much more difficult if you are to modify programs written by others if they didn't comment them: figuring out what a program does using only its code is very difficult and even the cleanest programming language may prove to be write-only if not properly commented. If they aren't commenting, modifying them will be a very hard task. Commenting your programs will help you when you are to modify them later. We will learn later how to define and use functions and procedures. Of course, this feature is beneficial only if you use it to improve the code readability. ![]() A function cannot be defined when typing in commands at the dot prompt (hbrun/xbscript).Įvery xBase language is case insensitive, which means that all the following lines are the same: function MAIN Defining such a function is not compulsory with Harbour, as if it is missed errors would occur during compilation, but I will keep it to make sure the examples work with all compilers. The first line defines a function named MAIN. We will comment on each line of the helloworld program. ![]() (in GeoCities this and all other sources were highlighted by the on-line service CodeColorizer at, or, alternatively by the service at - they tend to look a bit better than the Wikibook highlighting). ? "Hello, the weather is fine today" return nil
0 Comments
Leave a Reply. |