std/compilesettings implementation (#13584)
* Implement compileSetting() and compileSettingSeq() * Change from magic to vmop * better design for querySetting Co-authored-by: genotrance <dev@genotrance.com>
This commit is contained in:
parent
0809098971
commit
614fb7567c
4 changed files with 118 additions and 0 deletions
12
changelog.md
12
changelog.md
|
|
@ -78,10 +78,22 @@
|
|||
|
||||
```nim
|
||||
|
||||
type
|
||||
Foo = object
|
||||
col, pos: string
|
||||
|
||||
proc setColor(f: var Foo; r, g, b: int) = f.col = $(r, g, b)
|
||||
proc setPosition(f: var Foo; x, y: float) = f.pos = $(x, y)
|
||||
|
||||
var f: Foo
|
||||
with(f, setColor(2, 3, 4), setPosition(0.0, 1.0))
|
||||
echo f
|
||||
|
||||
```
|
||||
|
||||
- Added `times.isLeapDay`
|
||||
- Added a new module, `std / compilesettings` for querying the compiler about
|
||||
diverse configuration settings.
|
||||
|
||||
|
||||
## Library changes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue