Documentation

PT037 CLONE | BORROW | MOVE

Back to documentation index
{
  "@context": "https://nxdlang.org/schema",
  "doc_id": "PT037",
  "title": "CLONE | BORROW | MOVE",
  "description": "NXD Compiler Testing Notes - Nim",
  "layer": "Passed Tests",
  "category": "Passed Tests",
  "keywords": [Transpilation, Compiler, Nim], 
  "doc_version": "1.0",
  "status": "active"
}

# PT037 CLONE | BORROW | MOVE

#### NXD Sample:

```nxd
MODULE TEST

FUNC MAIN()
    CONST VALUE SET 10

    PRINTLN(CLONE VALUE)
    PRINTLN(BORROW VALUE)
    PRINTLN(MOVE VALUE)
```

### Result:

COMPILER: PASS
SEMANTICS: PASS

Expected Output:

#### Actual Output:

```nim
# test


proc main() =
  let value = 10
  println(CLONE value)
  println(BORROW value)
  println(MOVE value)
```

#### Notes: