John Kaster's Diamondback Talk (from Joe White's Blog)
Covering John Kaster's Preconference Tutorial On What's New in Diamondback (That Which We Dare Not Call Delphi 9).
THIS Talk WAS YesterdayAfternoon, But There Wasn't Enough Convergence of Wall Power And WORKING WIRELESS TO POST IT UnTil Now. So, Here Goes.
Before he even started the session, I caught a glimpse of Diamondback running on his machine The first thing I noticed was that there are three tabs at the bottom of the editor window:. "Code", "Design", and "History". Very Intriguing.
His Handouts WERE Hefty. 65 Sheets, 128 Printed Side Front and Back. The First 19 Pages (Not Counting The Cover Page "...
Head to Rush A Fair Bit To Cover What HE DID. (PiTY, 'Cause There Was Some Really Good Stuff. I wish they'd split the not-real-delphi stuff , Like ASP.NET and ECO, INTO A Separate Presentation To Give Him More Time.)
Once Again, I Had Two and A Half Pages of Notes Before The Break. Once Again, I Only Added Another Half Page After The Break (When He Was Covering Asp.Net and Eco). Good stuff, though.
Still No Official Word on Timelines, Not Even "You'll Hear About It At The Opening Session", SO I Assume That (a) It's Still A Ways Off and (b) Management Has Sent Out A Decree That Thou Shalt NOT Discuss Release. It's too bad. If they us selling diamondback today, there's no quothes IN My Mind That We 10 Upgrade Everyone In A Heartbeat.
Officially confirmed: Diamondback Will Support Delphi for Win32, Delphi for .NET, And C #, All Withnin The Same Ide.
You'll even be able to put Delphi and C # projects into the same project group. I know that Sam, Brian, and I will all very much appreciate this! He showed videos from folks who could not make it but had demoed their features ahead of time These videos will hit BDN around the time Diamondback ships IDE look & feel improvements:... Object Inspector, tool palette Delphi Direct goes away Instead, the BDN news feed appears on Welcome page.You'll be able to add your own feeds Even John K turned Delphi Direct off! Sweet! The Locals view will allow you to change which stack frame you're inspecting! The "An exception has occurred" debugger dialog will have a "Do not show this exception class again" checkbox "log call stack" breakpoint action Color-coded event log Built-in IDE QualityCentral reporting The CPU view will show the source, the IL, and the x86 code! (Holy cow, that'll be cool. Visual Studio can show the Source and the x86, but can't show the il!) Side Note: Vcl for Win32 Does Not do UN iCode, And There Are no Plans to add.
For people who need Unicode VCL in Win32, he suggested the free TNT controls, and said they have the Danny Thorpe Seal of Approval Wavy red underlines for compiler errors;. Hints showing the error message Refactoring (whoo!)
Rename Extract Method
KNOWS WHEN TO, AND WHEN NOT, Use Var Parameters Don't Know WHether It Can Do Out Parameters or Function Returns Extract Resource String
Picks a default name for the resource string If that name already exists, reuses the existing resourcestring Sync Edit (select a block, hit a button, and it underlines all the duplicated words; click on one and start typing, and it syncs with all the others within the block) Find unit or namespace Declare Field Declare VariableRight-click on an identifier, select "Declare Variable" Smart - guesses a reasonable data type Shows a preview of what's going to be changed, and does not apply until you say go All of these work in Delphi for Win32 and Delphi for .NET All except Extract Resource String work for C # Unsurfaced Refactoring API, so there will probably be more refactorings in later versions Find References, Find Local References
Not by name. If there are two different TFoo classes in two different units, this will find only references to the one you selelcted. (Based on the same metadata as refactoring) Does not go through the compiler, so it's very fast Tool palette IMProvements
Not just components anymore File New stuff is now in the tool palette Incremental search: start typing, filters the list Can drag categories and items around to reorder them, to optimize the incremental search for what you use most Ctrl Alt P focuses the Tool Palette, so you often do not even need the mouse Compiler can export XML doc comments Hover over a symbol:. shows XML doc comment in a hint menu, with a stylesheet (HTML formatted, hyperlinks) Unlike Visual Studio, this only works if You Have The Compiler Export The XML Doc File. Demand Loading of Win32 Design-Time Packages (Allen Blogged About The Consequences of this Decision, But Didn't Say What Reason WAS) History View
Every time you save, it rolls a new backup file You can specify how many levels of backup to keep Diff between versions There will be some level of integration with StarTeam here (but not in the build he was running) D8 Enterprise already ships with a StarTeam Standard license Diamondback will have solid StarTeam integrationBrowse & open directly from repository File renames are tracked on server New Open Tools APIs, including a syntax-highlighting API Function inlining
Several caveats "[C] ompiling the other unit at the same time as compiling the call site (build all) is a different situation than inlining a function that was loaded from a precompiled .dcu" (though it's not clear what that means) The compiler can refuse to inline a function Looks like this is mainly for the functions in Windows.pas It's not clear how useful it will be for user code Forward declared record types.. (maybe .NET only; need to ask Danny) Multi-unit Namespaces
Last segment of unit name is just disambiguation for the compiler, not for .NET namespaces File ABCpas used to go into namespace ABC, but will now go to namespace AB New convention for globals: global Foo in ABCpas is now ABUnits.C .Foo He Didn't Go Into Much Detail, But I'm Guesding That IF Your Package Has A Default Namespace of foo.bar, and your filenames area a.pas, b.PAS, AND C.PAS (Not Multipart Names) ............................................................................................. .S.
. You will still have to declare the loop variable in your 'var' section Many BCL classes will support for..in (TList, TStrings, TFields, etc.) Not in Diamondback / Win32 (but maybe in future Win32 compilers):