lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tuesday 30 November 2004 03:06, Richard Ranft wrote:
> It could be a compiler thing - Borland C++ Builder 4 and MSVC++ 6 both let
> you sink or swim in this regard - no polite automatic null pointers or zero
> values here!  Whatever you find at an uninitialized memory location is what
> you get, pal!

According to Posix, heap memory may or may not be initialised. BSS memory, 
i.e. uninitialised globals, statics, and arrays thereof, must be 
zero-initialised.

I have no idea what Windows does.

-- 
+- David Given --McQ-+ (base 10) = (base pi)
|  dg@cowlark.com    | 1 = 1; 2 = 2; 3 = 3
| (dg@tao-group.com) | 3.1415926... = 10.0
+- www.cowlark.com --+ 4 = 12.201220211...