Page 1 of 1

Structures

Posted: Fri Oct 25, 2013 10:29 am
by Rado1
Supporting structures in ZGE would bring more convenient programming. Declaration and usage can be similar to C language, ie.:

Code: Select all

// definition

struct StructureXY{
  int field1;
  model field2;
  ...
};

// variable of type structure

struct StructureXY varStruct;
struct StructureXY[100] arrayStruct;

// variable usage

varStruct.field1 = 12;
varStruct.field2.Position.X = 100;
arrayStruct[10].field1 = 8;

Posted: Thu Oct 31, 2013 12:50 am
by jonaspm
This reminds me of TYPES