Files
Nim/compiler
ringabout f009ea6c3e fixes #25208; generates a copy for opcLdConst in the assignments (#25211)
fixes #25208


```nim
type Conf = object
  val: int

const defaultConf = Conf(val: 123)
static:
  var conf: Conf
  conf = defaultConf
```

```nim
# opcLdConst is now always valid. We produce the necessary copy in the
# assignments now:
```

A `opcLdConst` is generated for `defaultConf` in `conf = defaultConf`.
According to the comment above, we need to handle the copy for
assignments of `opcLdConst`
2025-10-16 18:22:06 +02:00
..
2023-12-15 10:20:57 +01:00
2025-08-27 12:23:04 +02:00
2017-01-07 22:35:09 +01:00
2025-05-11 06:40:46 +02:00
2024-12-27 19:42:18 +01:00
2021-01-12 09:36:51 +01:00
2024-10-29 08:01:44 +01:00
2023-07-02 22:36:05 +02:00
2023-11-06 18:33:28 +01:00
2025-09-18 19:44:39 +02:00
2025-09-18 19:44:39 +02:00
2025-09-18 19:44:39 +02:00
2025-09-24 18:40:43 +02:00
2024-03-16 08:35:18 +08:00
2025-08-27 12:23:04 +02:00
2025-09-18 19:44:39 +02:00
2025-08-27 12:23:04 +02:00
2023-12-25 07:12:54 +01:00

Nim Compiler

  • This directory contains the Nim compiler written in Nim.
  • Note that this code has been translated from a bootstrapping version written in Pascal.
  • So the code is not a poster child of good Nim code.

See Internals of the Nim Compiler for more information.