It is annoying that the template doesn't resolve the symbol at template caller.

2024-06-14 Thread Araq
So use a `.dirty` template.

It is annoying that the template doesn't resolve the symbol at template caller.

2024-06-14 Thread slangmgh
For example, the following code doesn't compile: template t2() = template t1() = res.add "hello" var res = "" t1() echo res proc p1() = t2() when isMainModule: p1() Run The compiler out: :

Why does ORC GC alter my data in Nim but ARC doesn't? What am I doing wrong?

2024-06-14 Thread hc
Thank you demotomohiro! I think I now understand a little more what is going on, your first code do behaves as I want. echo mesh.triangles[0].points[0].x # prints 0.0 mesh.points[0].x = 2.0 echo mesh.points[0].x # prints 2.0 echo mesh.triangles[0].points[0].

Why does ORC GC alter my data in Nim but ARC doesn't? What am I doing wrong?

2024-06-14 Thread hc
Thank you Araq. What would be a better alternative then? `cast[ref Point](addr mySystem.points[indexOfThePoint])` was the only way I found to create objects and then point to those objects using ref objects. I also read about `ptr`, but according to most references I've found, they are more err

Why does ORC GC alter my data in Nim but ARC doesn't? What am I doing wrong?

2024-06-14 Thread demotomohiro
When you have an object type variable, you cannot make ref objects to point it. Unlike pointers, ref types cannot point to arbitrary memory location. It can points to specific object created with `RefObjTypeName(param0: x)` or [new](https://nim-lang.org/docs/system.html#new%2Cref.T) proc. I wrot

Why does ORC GC alter my data in Nim but ARC doesn't? What am I doing wrong?

2024-06-14 Thread Araq
> cast[ref Point](https://forum.nim-lang.org/addr > mySystem.points\[indexOfThePoint\]) This is incorrect code under every GC that Nim ever offered.

Why does ORC GC alter my data in Nim but ARC doesn't? What am I doing wrong?

2024-06-14 Thread hc
Hello everyone, I am new in Nim and I am trying to develop a software with it. I was experiencing some estrange (to me) behavior in my code: `arc` and `orc` garbage collectors lead to different results. I'm not sure if this is because I am doing something incorrect, as I'm not familiar with ref

The best gui bible library in your opinion.

2024-06-14 Thread basow53698
I'm looking for a unevirtualized library to support cross-platform, webview, 3d, gui and possibly tgui. I would like to hear your suggestions and favorite gui libraries. Я ищу уневирсальную библеотеку, чтобы она поддерживала кросплатформинность, webview, 3d, gui и по-возможности tgui. Хочу услы

The best gui bible library in your opinion.

2024-06-14 Thread dneumann
I've really enjoyed using Owlkettle, it has a nice DSL for UI's, feels a bit like an immediate mode library

template import non compile in nim 2.0.4

2024-06-14 Thread ringabout
It works on the devel as well

https://www.facebook.com/events/836485728343206/

2024-06-14 Thread aswegenvaan
Buy Now Official website:- Official Facebook:- Main Blogs:-

What Araq thinks about HappyX?

2024-06-14 Thread Araq
The lexing step is usually sufficiently described by a list of (pattern, action) pairs (maybe with priorization) re"if\b": keywordIf re"[A-Za-z_]+[A-Za-z_0-9]*": identifier re"\d+": number Run So it's not the regexes per se that are the problem. The proble

template import non compile in nim 2.0.4

2024-06-14 Thread Martinix75
wow! So it works! Now I try on the real case! thanks x 1000!

template import non compile in nim 2.0.4

2024-06-14 Thread PMunch
The error message is super unhelpful (it's says it can't find the file). However if you mark the template as `{.dirty.}` then it works.

Nexalyn Testo Booster Official Website Reviews

2024-06-14 Thread Yamcha026
Nexalyn Testo Booster viability of Nexalyn Testo Promoter can fluctuate in light of individual factors like age, wellbeing status, and adherence to the suggested measurement. A few clients might encounter recognizable enhancements in

template import non compile in nim 2.0.4

2024-06-14 Thread Martinix75
Hi guys, I have a little problem; the following program (example) is compiled with Nim2.0.0 but not with Nim 2.0.4! has something changed? How can it be resolved? template init() = import std/strformat init() let nome = "Andrea" echo (fmt"

https://www.facebook.com/Nexalyn.Testo.Booster.Official/

2024-06-14 Thread loykoxz
weight, ease feed fever, control blood sugar levels, advance liver wellbeing, back wound recuperating, decrease dying, and more. This fixing makes strides blood stream to the genital range, which boosts male sexual wellbeing. Too, it controls estrogen generation and advances testosterone generat