[M3devel] Initialize array to zero?

Martin Bishop martinbishop at bellsouth.net
Tue Feb 3 20:45:12 CET 2009


Martin Bishop wrote:
> Quick question, is it possible to initialize an array to all zeros?
> 
> I tried:
> 
> VAR a := ARRAY [1..10] OF INTEGER {0 .. 0};
> 
> but I get errors...I also tried just {0} but that errors too.
> 

Never mind, I figured it out, it's {0, ..}

:)



More information about the M3devel mailing list