-
### Example
Consider the following when you need to wrap a C++ class based on a C++ file and a header
* bar.h
```cpp
#pragma once
#include
class Bar {
public:
Bar() {
std::co…
-
### Example
```nim
type Foo = static int
proc bar(a, b: Foo) = echo a + b # doesn't matter if a: Foo, b: Foo or a, b: Foo
bar(1, 2)
```
### Current Output
```
(5, 4) Error: type mismatch…
-
### Example
```nim
proc foo(n: int): auto =
if n < 5:
return foo(n + 1)
else:
return 9
echo foo(3)
```
### Current Output
```
Error: internal error: getTypeDescAux(tyUntyped…
-
pragmas of attributes are not recognized in macros.
### Example
```nim
import macros
template myAttr {. pragma .}
type TObj = object
a {. myAttr .}: int
macro hasMyAttr*(t: ty…
-
A codegen error can be triggered by creating a subclass and calling a method with 'var' parameters.
The following snippet produces an error when it gets to obj3. If you remove 'var' from the metho…
-
## proposal
* add a windows-only import module `std/wintypes` which would wrap all the types from https://docs.microsoft.com/en-us/windows/win32/winprog/windows-data-types that are needed by other mo…
-
### Description
```
2023-06-29T09:34:02.6605506Z FAIL: tests/gc/gcleak2 c -d:release -d:useRealtimeGC --mm:refc ( 5.31 sec)
2023-06-29T09:34:02.6631010Z Test "tests\gc\gcleak2" in category "gc"…
-
Out of curiosity, I wonder if nlvm has any plans to implement IR like
other languages:
Julia https://docs.julialang.org/en/v1/devdocs/ssair/
Rust https://rustc-dev-guide.rust-lang.org/mir/index.h…
-
This was tested on https://play.nim-lang.org/#ix=3Jnf and also on my laptop (Nim Compiler Version 1.6.2 [MacOSX: amd64])
Sugar's `collect` seems to leak scope, plus maybe another bug to do with if/…
-
If you try to compile the following file:
```nim
proc id*[T](t:T):T {.exportc,dynlib,cdecl.} = t
discard id(5)
discard id("hello world")
```
with the settings:
```nim
--app:lib
--head…
deech updated
4 years ago