I’m excited to announce the first release of Castalia for 2014.
The best part is an exciting new feature: Function Prototype Synchronization.
Here’s the deal: Most functions (or procedures) that you write in Delphi have their prototype in two places: One in the interface section of the unit, and the other in the implementation section. If you want to change the prototype (add a parameter, change from a procedure to a function, etc…), you have to change it in two places. It gets annoying.
So, I added a “Function Prototype Synchronization” tool to Castalia. Here’s how it works:
When you want to change the prototype, make the change, in either the implementation or interface prototype.
After you’ve made your changes, hit a hotkey (Ctrl+Shift+S by default), and Castalia will automatically synchronize the two prototypes.
It’s that simple.
Here’s a quick little video showing it in action:
Function Prototype Synchronization is available in the Professional and Suite editions of Castalia.
(A couple notes: Prototype Synchronization only changes the method you’re working on. It won’t change ancestor or descendant classes. Prototype Synchronization does not [currently] work with overloaded methods.)
Here’s what else is new in Castalia 2014.1:
- Completely redesigned options dialog
- Fixed: Edit cursor doesn’t appear correctly when the file being edited has syntax errors
- Fixed: Error in unit resolution which caused “Eliminate With” refactoring to not work properly
- Several other small bugfixes and performance improvements