is there a way to have a collection (seq or better: Tables) of procs with
generic types?
Yes, that is now much clearer - need to use {.strdefine.} ( as in your other
post) Thanks AGAIN.
I am on Windows too here, maybe file something?
@mratsim Since I have already written my own custom vTable mechanism with nim
macros and some emitted C++ code (in order to interop i.e. inherit with C++
base classes) ... I'm wondering what you meant by saying:
> In the future you will also be able to use concepts and VTables.
Is there somethi
Very cool. The toImport allows any static string expression to be used as the
argument of the import.
I had seen the strdefine pragma but did not understand its purpose.
THANKS
I'm having this issue on Windows. And it does work in Ubuntu WSL. So it's a
Windows-specific issue.
you can use
when defined(CTS): # if the CTS value is "true" or "false"
...
Run
or
const CTS {.strdefine.} = "default_value"
when CTS=="yes":
...
Run
currently there is nothing like `when getValue(CTS) == "xxx"` and conditi
Version 0.18.0 of nim does not seem to recognize defined symbol values:
The source named checkCTsym.nim is:
when CTS==yes:
echo "yes"
else:
echo "no"
Run
The compile command is:
> nim c -r -d:CTS=yes checkCTsym
The error message is: > checkCTsym.
I'm very happy to see this release! Keep trucking on :D
@Araq, ah, thank you very much for the explanation. I thought it might be more
complicated than I originally considered. I find this kind of stuff fascinating.
I didn't know an LLVM backend was in the works :0
Your example works just fine for me.
$ ./hello
INFO Jester is making jokes at http://0.0.0.0:5000
Starting 1 threads
DEBUG GET /test2
DEBUG 200 OK {"content-type": @["text/html;charset=utf-8"]}
DEBUG GET /hm.html
DEBUG 200 OK {"etag": @["fd5b9189aefa751b5d4
I hope I'm not sounding rude. English is not my mother language and I know
english not that much, so I don't know if I sound sometimes a little bit like
an... I really don't know if this could be a bug or my fault, that's why I'm
asking and wonder.
I hope you all have a nice weekend then.
Hi guys,
I tend to think that I'm stupid, because I don't get why I'm not able to use
public folder with jester.
I try to give as much information as possible:
C:\Users\cutter\Desktop\webtest>nim -v
Nim Compiler Version 0.19.0 [Windows: amd64]
Compiled at 2018-09-26
Co
Nim 0.19.0 is in Debian Unstable since yesterday evening. Derivative
distributions will fetch the package in the next days.
A little dashboard:
[https://repology.org/metapackage/nim/versions](https://repology.org/metapackage/nim/versions)
Thanks - didn't work unfortunately (also switched to stdcall) - still getting
nil on the Delphi side. I'll go back and try experimenting with simple records.
Wow, I had no idea this is possible. :D
I wrote the code to do that, twice. It always "kinda works" but the devil is in
the details and it increases the attack surface of the compiler too much.
Consider this problem:
void a(int* x; int L);
Run
Does the `a` write into `x`? If it does, we need to write b
I think it would be possible, e.g. with libffi.
[https://en.wikipedia.org/wiki/Libffi](https://en.wikipedia.org/wiki/Libffi)
[https://github.com/Araq/libffi](https://github.com/Araq/libffi)
_Running to update._ >.this. pragma removed _Running to roll back_
Well, well... Seems like I better wait for 1.0
"deprecated" does **not** mean "removed".
20 matches
Mail list logo