summary refs log tree commit diff stats
path: root/doc/apis.md
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2024-05-21 20:53:08 +0800
committerGitHub <noreply@github.com>2024-05-21 14:53:08 +0200
commit309f97af4c03c2237a890aad147c261232b73acd (patch)
treebde054f2072a177e33719b96f17b2e93b48b30e3 /doc/apis.md
parentb838d3ece1e8530f355b5078b2daa96ac01acab5 (diff)
downloadNim-309f97af4c03c2237a890aad147c261232b73acd.tar.gz
fixes #23627; Simple destructor code gives invalid C (#23631)
fixes #23627

```nim
type
  TestObj = object of RootObj

  TestTestObj = object of RootObj
    testo: TestObj

proc `=destroy`(x: TestTestObj) =
  echo "Destructor for TestTestObj"

proc testCaseT() =
  echo "\nTest Case T"
  let tt1 {.used.} = TestTestObj(testo: TestObj())
```

When generating const object fields, it's likely that
we need to generate type infos for the object, which may be an object
with
custom hooks. We need to generate potential consts in the hooks first.

https://github.com/nim-lang/Nim/pull/20433 changed the semantics of
initialization. It should evaluate`BracedInit` first.
Diffstat (limited to 'doc/apis.md')
0 files changed, 0 insertions, 0 deletions