News for April 2012

New "Fractions" library project on GoogleCode
There's a new branch of the Google Code ddab-lib project named "fractions". It contains an advanced record-with-methods for processing fractions: lots of operator overloads and common operations. There's not been a release yet, and there's no page for it on The unit has passed lots of DUnit tests, but I make no guarantees. I hope to extend and release (or release then extend) the project at some point. Subversion users who feel brave can check out the code from Mozilla Public License v2.0.
28 April 2012
Yet another Code Snippets database update!
No Code Snippets Database updates for months and then two in one day! In this one there are three routines for checking if a string is a valid Single, Double or Extended floating point number. There's also a routine to convert a positive whole number into Roman notation. A single new date / time routine converts a whole number of milliseconds into a TDateTime. There's a whole bunch of new overloaded Exchange procedures that swap the values of two integers. There are overloads for signed and unsigned versions of 8, 16, 32 and 64 bit integers. Oh yes, the old and now superseded ExchangeInt routine has moved from the Mathematics category to join its new friends in the Utilities category.
22 April 2012
The Code Snippets database has had a small, but overdue, update
The online Code Snippets database has been updated with two new graphics routines and two new type definitions. The first routine is ContrastingColor that selects either a black or white foreground colour that contrasts with a given background. The second routine is CountColors that counts the number of unique colours in a 24 bit bitmap. The new types support working with 24 bit and 32 bit scanlines. Other than that a few types and some constants that relate to graphics routines have been moved from the Types and Constants categories into Graphics.
22 April 2012
2nd preview of CodeSnip v4 now released on SourceForge
The 2nd alpha (preview) release of CodeSnip v4 has now been released. This provides the core new features slated for v4 - new "unit" and "class" snippet types. The first lets you include whole units in the snippets database that can be test compiled. The second "class" type is for classes and advanced records along with their method implementations. Snippets of this type can be test compiled and included in generated units. There are other new features that you can read about in the change log at Note that this version is available only on source forge, in either executable or source code format.
21 April 2012
CodeSnip v3.10.1 released (bug fix)
This is a bug fix release of CodeSnip that fixes an obscure bug that can corrupt source code units generated by CodeSnip. The circumstances when this occurs are not commonplace, but you are advised to update just in case. See the bug report at for full details.
20 April 2012
CodeSnip v3.10.0 released
CodeSnip v3.10.0 has been released. It's a minor update that simply adds a new Help | On The Web | FAQs menu option that displays the CodeSnip FAQ in the default browser. Some niggling UI problems in dialogue boxes using tabbed page controls were also fixed.
17 April 2012
PasHi Pascal Syntax Highlighter v2 beta 1 released.
A beta of the new greatly enhanced PasHi Pascal syntax highlighter has been released. This is a mega update with lots of new options such as line numbering, use of your own style sheets, links to external style sheets, multiple source files etc. See the program's ReadMe file for full details. There's also a new greatly enhanced version of the GUI front end program PasHiGUI. Several sample style sheets are bundled with PasHi, many of which emulate the Delphi 2010 IDE styles, right down to the line numbering style.
11 April 2012