Syd wrote: > Hi guys , I'm not sure what indentation style you are referring to , > and I have warned everyone it's been a long time since I have done > any programming
The purpose behind coding styles is to make the code easy to read. Melchior wasn't talking about anything specific, just the general rules that all styles adhere to. Most important in this case is indentation, your submitted file had none. Code in all modern programming languages has a recursive structure; some code blocks live "inside" other code blocks. It is a long-standing tradition that this structure be reflected in the indentation of each line of code: + "Inner" structures should have more whitespace at the beginning of the line than their enclosing blocks. + Lines that are "siblings" in the structure of the file should have exactly the same amount of whitespace. If you follow no other rule, follow this one. It's common to every sane programming style out there. Andy ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel