You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PR #424 type draft (e326f17) has alias, array, mapping, struct, function, and variant, but no kind for a typed reference to a value in a specific EVM data location (such as memory<string>, storage<uint256>, or calldata<bytes>).
In languages where references are first-class types (such as Core Solidity's memory<T>, storage<T>, and calldata<T>, or Solidity storage/memory reference parameters), a reference can appear inside function signatures, struct fields, or generic type arguments, not only as a top-level variable's pointer location. Today a compiler has to emit memory<string> as a one-field struct holding a raw word, which drops both the target type (string) and the location (memory) everywhere except the free-text label.
contains (required): { "type": ... }, the target type T.
location (optional): "storage", "memory", "calldata", "transient", "code", or "returndata" (omitted if the language does not fix the location in the type).
label, class, definition: same as other complex types.
This stays on the type side: it says what the value refers to. Where the reference word itself lives (for example on the stack) and how to follow it stay in pointers and the upcoming realization schema.
Questions
Should location use the pointer location enum (storage, memory, calldata, transient, code, returndata) or be an open string?
Should reference live in the type schema now, or wait for the realization schema?
Activity