How do I obtain the address of a given variable?
in C we would use &<var> I can assign a memory address to an array variable using a literal, but if I don't know the address where a variable will be, how do I obtain that address?
looks like array var can only reference something on the heap (compiler error), so that's why docs only show array being used as a pointer to objects on the heap, not to the address of just any variable. Guess it's a safety feature for us not messing with the stack?
Why no general pointers?