Archive

Friday, 12. May 2017

1
vote
Vote UpVote

How to create an operator overload that only accepts nil

Delphi sorcery – Since the introduction of Nullable types in Spring4D they had a problem: assigning null to them was cumbersome. Some time ago you could implicitly assign a Variant to them which made it possible to assign Null. However that caused some issue because of implicit Variant type conversion.Imagine you ...
Details Favorite? Off-Topic? noreply@blogger.com @ 00:39

Thursday, 11. May 2017

0
votes
Vote UpVote

I wish I had dcc32 -dontmakemycodeslow

Delphi sorcery – Quick, what is wrong with this code performance wise?function TWhereIterator<T>.MoveNext: Boolean;var current: T;begin Result := False; if fState = STATE_ENUMERATOR then begin fEnumerator := fSource.GetEnumerator; fState := STATE_RUNNING; end; if fState = STATE_RUNNING then begin ...
Details Favorite? Off-Topic? noreply@blogger.com @ 21:37
4
votes
Vote UpVote

Using Threads Snapshot tool as postmortem debugger

EurekaLog Blog – This article will show you how to register and use Threads Snapshot tool to capture call stacks of unhandled exception crash of any process. When application throws exception which is not handled by application's code (so called "unhandled exception") - a system will attach external "debugger" to ...
Details Favorite? Off-Topic? Александр Алексеев @ 03:02
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)