Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Delphi-News aus aller Welt (https://www.delphipraxis.net/58-delphi-news-aus-aller-welt/)
-   -   Strange overloads (https://www.delphipraxis.net/186011-strange-overloads.html)

DP News-Robot 27. Jul 2015 17:20

Strange overloads
 
Combining method overloading with implicit type conversion may lead to strange results. Consider the following innocent stub code for implementing a wrapper type for array of bytes: unit Unit1; interface uses SysUtils; type ByteArray = record class function Copy(const A: ByteArray; I: ...http://feeds.feedburner.com/~r/delph...~4/Tb_AL8WV_hU

More...


Alle Zeitangaben in WEZ +1. Es ist jetzt 15:18 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz