![]() ![]() While just one semi-colon will do the job, some people prefer two or three for visibility.You may also want to break longer functions up into stages and explain what each stage does.At the beginning of the routine be sure to include a comment that states the filename, what the function does, the author, the date, and the version.Anything on a line to the right of a semi-colon is ignored. Use a semi-colon in front of any line to add comments to a file. You can set the formatting options under Tools>Environment Options> Visual LISP Format Options.Ĭomments help you and anyone else reading the file to understand the code.AutoLISP ignores spaces and carriage returns, so use them to make the routine more understandable to the programmer.You can either Format edit window or Format selection. ![]() They automatically insert tabs and spaces where needed to give you added clarity and help you track parentheses. But Visual LISP includes helpful formatting tools. When creating AutoLISP routines, the programmer should keep in mind not only correct syntax, but also a well-structured program that is easy to comprehend, forgiving of mistakes, easy to debug, and easy to edit. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |