# thing

Declare plain value data

Last updated: 2026-09-09

Package: language | Status: stable

Tags: complete-program, cpu, data, keyword, yeho

Start with thing for coordinates, settings, records, messages, and other data that should behave like a value.

```yh
thing
```


## Plain data memory address

Start with thing for coordinates, settings, records, messages, and other data that should behave like a value.

Verification: type checked

```yh
thing point
{
    int x
    int y
}

SetBoth(point memoryAddress target, int x, int y)
{
    target.x = x
    target.y = y
}

point value = point()
SetBoth(value, 8, 13)

if value.x == 8 and value.y == 13
{
    Console.Log("plain-data-memory-address-ok")
}



```

Save this beside start.yh as project.mech:

```toml
package = "tests.compiler.kyber.plainDataMemoryAddress"
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--thing/complete --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


thing is preferred over the deprecated dobox alias.

Things can contain other things, which is how larger data maps stay understandable.

Source: yeho/docs/language/language-core.md §3.1; tests/compiler/kyber/thing-runtime/start.yh

AI training permission: https://demonhunterlabs.com/ai-use
