pub fn declare_array(&mut self, name: Identifier, item: TypeId, size: ArraySize) -> MemoryBlock {
        let mem = self.allocate_array(item, size);
        self.insert_item_into_current(name, ScopeItem::Array {
            item: item,
            size: size,
            memory: mem,
        });

        mem
    }
/// Declares a name with an array type with the given item type and allocates enough space for
/// that type and all its elements
/// The array is allocated as a single, contiguous block of memory
/// The name is declared in the "current" scope which is at the top of the stack
/// Returns the allocated memory block
Declares a name with an array type with the given item type and allocates enough space for
that type and all its elements
The array is allocated as a single, contiguous block of memory
The name is declared in the "current" scope which is at the top of the stack
Returns the allocated memory block
Declares a name with an array type with the given item type and allocates enough space for that type and all its elements The array is allocated as a single contiguous block of memory The name is declared in the " current " scope which is at the top of the stack Returns the allocated memory block
pub fn declare_array(&mut self, name: Identifier, item: TypeId, size: ArraySize) -> MemoryBlock {
        let mem = self.allocate_array(item, size);
        self.insert_item_into_current(name, ScopeItem::Array {
            item: item,
            size: size,
            memory: mem,
        });
        mem
    }
pub fn declare_array ( & mut self , name : Identifier , item : TypeId , size : ArraySize ) -> MemoryBlock { let mem = self . allocate_array ( item , size ) ; self . insert_item_into_current ( name , ScopeItem :: Array { item : item , size : size , memory : mem , } ) ; mem }
Declares a name with an array type with the given item type and allocates enough space for
that type and all its elements
The array is allocated as a single, contiguous block of memory
The name is declared in the "current" scope which is at the top of the stack
Returns the allocated memory block
Declares a name with an array type with the given item type and allocates enough space for that type and all its elements The array is allocated as a single contiguous block of memory The name is declared in the " current " scope which is at the top of the stack Returns the allocated memory block
&mut self
name
Identifier
item
TypeId
size
ArraySize
&mut self
name
Identifier
item
TypeId
size
ArraySize