Talk:Variables (Delphi)

From RAD Studio
Jump to: navigation, search

Memory-managed local variables are initialized

The page says that local variables on Win32 are not initialized. However, I believe that strings, interfaces, dynamic arrays, and variants are initialized. Ray Lischner's book says this on page 395. This makes sense since if the compiler didn't initialize them, it would have a hard time handling the reference counting. Davidmarcus 12:15, 21 December 2011 (PST)