Wednesday, 10 March 2010

Free Pascal

Free Pascal Compiler and Lazarus plus Delphi

Lazarus looks good but seems a bit flaky, or it could be that I simply don't know how to drive it.

Here is a very interesting page by a working programmer: http://www.wamoz.com/wombat/journal_of_an_oop_bigot.htm. Has a lot of comments about Delphi techniques.

How To Do various Odds and Ends

Bear in mind that I am using FreePascal on Windoze (Win2K).

Enumerate files or folders
You can do this using either the DOS unit or SYSUTILS unit, you don't need both.
Return a value from a function
You can assign a value to the function name as though the function were a variable, you can also use the function name in an expression.
Get arguments from the command line
if it is a single argument then just check the ParamCount() function to find out if there is an argument and use the ParamStr() function to get the actual argument. Not sure if this deals with quoted arguments properly.

Pretty Printing Pascal

Everyone does it wrong!

That is: none of the pretty printers that I have found satisfy my requirements.

I like the Emacs mode because it automatically aligns the colons in VAR statements and in multiline procedure headings. However what I really want is to automatically move BEGINs to the same line as the DO, THEN or ELSE that they belong to.

Dotplot

See PascalDotPlot.

No comments:

Post a Comment

Blog Archive

Followers