-
this should compile:
```nim
type
X[T] = object
inner: T
template nest(t: int): untyped = 42
template nest(t: X): untyped = nest(t.inner)
# uncomment to make one level of nesting wor…
-
Sorry if it is an issue on my side, I'm still quite new to Nim and raylib.
When importing raylib as well as physac in my main class, everything is working fine and as expected.
When I tried to mov…
-
HttpClient will raise a ProtocolError "Connection was closed before the full request has been made" if there is a long delay between two requests to the same server (presumably due to keep-alive expir…
ghost updated
8 months ago
-
### Is your feature request related to a problem? Please describe
Assembly code output from Nim is less readable than one from C.
For example:
Sample C code:
```c
#include
void foo() {
…
-
### Example
```nim
import macros
template skipSerializeIf(condition: typed{`proc`}) {.pragma.}
proc alwaysTrue[T](x: T): bool = true
# also crush on
# proc alwaysTrue(x: any): bool = true
#…
-
Is this a bug?
Defining default values for function in parameters result in anonymous redefinition error
I just installed nim 1.6.0, I had 1.4.8
### Example
```nim
proc start(draw:proc=(proc()=…
-
Low priority, disallowing this makes more sense than making it work.
### Example
```nim
var x = cstring"abcd"
x[0] = 'x'
```
### Current Output
```
x_43003[0].charCodeAt(0) = 97;
^
Ref…
-
### What happened?
`j` here gets defined as one of `v`'s parameters:
```nim
proc v(j: int) =
proc m[t]() = discard j # does not compile
proc r() = discard j # compiles
m[int]()
r()
…
-
In order to get `test/hello.nim` to compile, I had to:
- Remove the `expr()` call from `debug()` calls, so `debug("attr:$1", expr(result))` became `debug("attr:$1", result)`.
- Namespace references to…
-
This code:
```nim
type
HasLen* = concept x
len(x) is int
converter toBool*(arg: HasLen): bool = arg.len > 0
proc input*(prompt = ""): string =
echo prompt.len()
```
makes Nim comp…
ghost updated
3 years ago