pub fn declare(&mut self, name: Identifier, type_id: TypeId) -> MemoryBlock {
        let mem = self.allocate(type_id);
        self.insert_item_into_current(name, ScopeItem::TypedBlock {
            type_id: type_id,
            memory: mem,
        });

        mem
    }
/// Declares a name with the given type and allocates enough space for that type
/// 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 the given type and allocates enough space for that type
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 the given type and allocates enough space for that type The name is declared in the " current " scope which is at the top of the stack Returns the allocated memory block
pub fn declare(&mut self, name: Identifier, type_id: TypeId) -> MemoryBlock {
        let mem = self.allocate(type_id);
        self.insert_item_into_current(name, ScopeItem::TypedBlock {
            type_id: type_id,
            memory: mem,
        });
        mem
    }
pub fn declare ( & mut self , name : Identifier , type_id : TypeId ) -> MemoryBlock { let mem = self . allocate ( type_id ) ; self . insert_item_into_current ( name , ScopeItem :: TypedBlock { type_id : type_id , memory : mem , } ) ; mem }
Declares a name with the given type and allocates enough space for that type
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 the given type and allocates enough space for that type 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
type_id
TypeId
&mut self
name
Identifier
type_id
TypeId