logo
Axe Programming Language
Taking Addresses
Initializing search
    GitHub
    GitHub
    • Home
    • Getting Started
      • Primitive Types
      • Foreign Types
      • Opaque Types
      • std.algorithms
      • std.arena
      • std.csv
      • std.errors
      • std.string
      • std.memory
      • std.io
      • std.math
      • std.maps
      • std.net
      • std.parallelism
      • std.time
      • std.term
      • std.regex
      • std.typecons
      • std.lists
      • std.json
      • std.crypto
      • std.random
      • std.uuid
      • std.os
    • Control Flow
    • Modules
    • String Handling
    • Lists
    • Function Call Conventions
    • Extern Functions
    • Error Handling
    • Concurrency and Parallelism
    • Macros
    • Generics
    • Overloads
    • Unsafe Blocks
    • Memory Management
      • Dereferencing
      • Taking Addresses
      • Saw CLI
      • Axels
      • Axedoc

    Taking Addresses

    To take the address of some pointer, simply use the addr(...) construct, like so:

    val link_libs: ref StringList = StringList.create(addr(arena), 16);
    Made with Material for MkDocs