-
Nim programs always use `staticRead` for resource embedding. However, if we use visual c compiler (add --cc:vcc), we will encounter an error: `fatal error C1091: compiler limit: string exceeds 65535 b…
-
Hi,
When trying to compile my first book (very exiciting!) I am getting the following error
``` Error: cannot open file: /usr/compiler/pathutils```
I am running arch. Judging from other post …
-
Source code filters are ignored when nim code is compiled via stdin rather than from a file.
### Example
```
$ echo '#? stdtmpl'$'\n''foo' | nim -r --hints:off c -
```
### Current Output
```…
-
**info:**
- nim compiler version: `1.4.8`
- inim version : 0.6.1
- os: windows 10
**the code:**
```
import os
nim> proc uuu=
echo "start"
sleep 1000
echo "end"
nim> …
-
This code:
```nim
template rewriteMinusOne{(a = a + 1)|(a += 1)}[T](a: T): untyped =
a -= T(1)
var a = 3
a = a + 1
echo a
a += 1
echo a
```
crashes the compiler. Traceback:
```nim
n…
-
### Description
```nim
{.warning[BareExcept]:off.}:
try:
echo "X"
except: # warning disabled here
discard
try:
echo "Y"
except: # warning disabled here
discard
```
Bo…
-
### Example
```nim
when true:
proc bar(x: string): auto =
x.len
proc fn(a, b: var string): lent string =
var ret: ptr string
if a[0]
-
### Description
```nim
import std/strformat
discard parseStandardFormatSpecifier("")
```
is one example, but browsing generated C with `--mm:refc` shows many of them.
C compilers aren't ne…
-
We have common idioms on types and collections and it would be useful to document what they imply so that new libraries avoid surprising their users.
For example for a long time the builtin `sets` …
-
swapping endianness does not work at compile time, because `when` statement does not account for nimvm, instead, it assumes the target compiler is being used.
### Example
```nim
import en…