Vote UpVote

Delphi Tip of the Day - Forward Declarations. Solving the Chicken or the Egg Problem.

Cape Cod Gunny Does Delphi – Today's Delphi Tip of the Day is about resolving "which came first, the chicken or the egg". Because Delphi is a strongly typed language you can't refer to something until it's been defined. However, there are situations where you want to refer to something NOW, but unfortunately it hasn't been defined yet.In other words "I want the egg of that chicken. I know that chicken hasn't laid that egg yet. However, since I know that chicken is going to lay that egg (trust me I know), let me have that egg now."This is where forward declarations come into play.I was brought here by something that came ...
Favorite? Off-Topic? Michael Riley @ 2019-03-09 15:54


Visits: 324
Votes: 2
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Ph. B.
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


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