Some generics problems were fixed in 1.3.14, but there are still cases left. They should all be formatted without spaces:
function Something(Callback: TProc < TSomething > = nil): Boolean; ProcD<T > (xxx); if Source is TSomething < T > then ...
Another one - this works:
MyFunction<T>.MyMethod();
But adding a line break doesn't:
MyFunction < T > .MyMethod();
Edit: other examples:
if (FValue is TSomeClass<T>) then //good if FValue is TSomeClass < T > then //bad
Fixed first case: function Something(Callback: TProc < TSomething > = nil): Boolean;
But that fix is really ugly. :-(
Fixed in revision #2761
Installed 1.3.15, thanks :) - many formatting problems are now correct, but not all...
1.3.14 Result:= TryGet<string > (AResult); 1.3.15 Result:= TryGet < string > (AResult); 1.3.14 TMyClass = class(TMyBaseClass<string>) 1.3.15 TMyClass = class(TMyBaseClass < string > ) //above is only for <string>, and it happens all over the place in my code, also when calling generic functions 1.3.15 //indenting changed GetCharset(Result)['Symbols'].AsObj.AddObj(Key) .Add('Description', Descr, Descr <> '') .AddList('Images'); //im not sure if it makes sense to have 4 spaces indent here - maybe ok, it's because of the [], I can live with it Result:= Format(' %d %d ', [a, b]);
Log in to post a comment.
Another one - this works:
But adding a line break doesn't:
Edit: other examples:
Last edit: maf-soft 2019-09-25
Fixed first case:
function Something(Callback: TProc < TSomething > = nil): Boolean;
But that fix is really ugly. :-(
Fixed in revision #2761
Installed 1.3.15, thanks :) - many formatting problems are now correct, but not all...