# memoryAddress

Request a reviewed address alias

Last updated: 2026-09-09

Package: language | Status: experimental

Tags: complete-program, cpu, keyword, memory, yeho

Use ordinary parameters by default, copy for an explicit independent value, original for an admitted source alias, and memoryAddress only at a reviewed low-level boundary.

```yh
memoryAddress
```


## Scalar by reference

Use ordinary parameters by default, copy for an explicit independent value, original for an admitted source alias, and memoryAddress only at a reviewed low-level boundary.

Verification: type checked

```yh
Bump(int original value)
{
    value = value + 1
}

Set(int memoryAddress value, int next)
{
    value = next
}

int value = 1
Bump(value)
Set(value, 5)

if value == 5
{
    Console.Log("byref-ok")
}
else
{
    Console.Log("byref-bad")
}



```

Save this beside start.yh as project.mech:

```toml
package = "tests.compiler.kyber.scalarByReference"
version = "0.1.0"
backend = "kyber"
osTarget = "windows"
archTarget = "x64"
selfContainedApp = false




```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/word--memoryAddress/complete --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


Alias modes are restricted by type and target.

Task aliases are rejected. memoryAddress is not a general raw-pointer escape hatch.

Source: yeho/memory-lifetime-unsafe-2026.1.json; parser_types.cpp parseParameters

AI training permission: https://demonhunterlabs.com/ai-use
