Aha. So you use it basically like a capturing regex. Interesting.
I'm wondering, could I use it like this to parse nested parentheses? They're no
more than 4 levels deep. But they can be quite long (thousands of chars).
Do it. It would be awesome to be able to take advantage of the CLR on Windows,
in particular Windows Forms.
If you write a program that only use windows API, statically link existing
library or ship it with DLLs, people can use it without install anything. Are
there any reason why you would like to use doNet API rather than windows API or
existing Nim or C/C++ libraries?
If you want to use Nim with C
Well... Techincally I want something seamless. Like this:
[https://github.com/pythonnet/pythonnet](https://github.com/pythonnet/pythonnet)
So, instead of writing my own library for clipboard management f.e. (that's
what I'm doing right now), I could've simple write:
import nimclr
I added this after lib/pure/nativesockets.nim:261:
echo "SOCKET:"
echo address
echo socket_port
echo $hints
echo $gaiResult
Run
output:
SOCKET:
80
(ai_flags: 0, ai_family: 0, ai_socktype: 1, ai_protocol: 6, ai_addrlen:
Keep going, check why `address` is `""` :)
What I don't know is what supposed to go there...
The port is empty too, it just gets a default in the same function.
I appended these after httpclient.nim:865(when client is HttpClient):
when client is HttpClient:
echo("httpclient.nim/newConnection")
echo("CU:", $connectionUrl)
echo("HN:", connectionUrl.hostname)
echo("Port0:", connectionUrl.port == "")
Hi Amenhotep,
Please drop an issue on the NPeg github page with a description and/or some
examples of what you're trying to do, I'd be glad to help you out and see if we
can get that to work.
[https://github.com/zevv/npeg/issues](https://github.com/zevv/npeg/issues)
I have started work on a translator from c# to nim. It is written in c#, and
uses Microsoft's Roslyn parser (which is updated to the latest language design
- so no need to rely on incomplete or write a parser). I am not entirely sure
my plan is feasible, and these are first steps, but right now,
Note, this would not be a bridge to a dll, it is full translation, so first you
disassemble or use the MIT licensed dotnet corefx, and then it gets ported
(semi or fully automatically) to nim. Then you can use the nim-generated
library in your code. if the source gets updated, the porting is aut
Nim Compiler Version 0.19.4 [MacOSX: amd64]
SQLite version 3.27.2 2019-02-25 16:06:06
sqlite> .load libhelloworld
Traceback (most recent call last)
helloworld.nim(55) sqlite3_helloworld_init
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
So I'm pretty close with the MinGW support on OpenWL, however I have a question
to ask since I don't normally use this setup.
Why is it that I have to use winpty to launch my app (which spews printf()s to
the console)? I only knew to do that because of the warning that you see with
the git inst
Line 55 is the call to register the function with SQLite. Off the top of my
head, I'm not sure what would be crashing there. There is no check about
whether the PSqlite3 object is valid. That is supplied by SQLite, but I suppose
we should be checking its validity.
Independent of this, I did jus
Hello all,
(One week experience of learning Nim)
I would like to take advantages of the static typing that would look a bit like
distinct types, but not exactly. I would like the sub-types to be distinct, but
each sub-type to be fully equivalent to the base type. For example:
var v:uint32 = 1
16 matches
Mail list logo