Skip to content
Low-level programming · Higher-level thinking
Login Register
Forum / Source Help

initializing arrey

A community discussion post from the original code:zIRON forum.

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

initializing arrey

does ziron allow initializing array when declare it , for example

 byre myarr[10] = 0,1,2,3,4,5,6,7,8,9;

if not , how can i make it.

http://www.freewebs.com/ogremagic/index.htm

Replies

Colin admin
Posts
928
Threads
49
Location
Bulgaria

actually, ziron does not support this yet and infact it is a pretty important feature to add, so first thing when i return i will begin adding set initialized data.

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

also , how can i declare struct instance and initializing it.

for example

block GUID {
	DWord D1;
	Word D2;
	Word D3;
	byte D4[8];
}


GUID GUID_Key  = 0x55728220,0x0D33C,0x11CF,0x0BF,0x0C7,0x044,0x045,0x053,0x054,0x00,0x00;
 

http://www.freewebs.com/ogremagic/index.htm