Custom assignment operator

2019-02-01 Thread jacobsin
I realize what I am asking is "Dark magic" and goes against what should be done. However, with that in mind I would like to create a custom assignment operator. var x:int =5 Run vs. var x <| 5 Run or var x << 5 Run What I

Re: Nim development blog

2019-02-01 Thread Araq
New video is avaible: [https://www.youtube.com/watch?v=sEQnmInxmfg](https://www.youtube.com/watch?v=sEQnmInxmfg) Our bullet points: Miran: * documentation: * 17 modules now have improved documentation (available at [https://nim-lang.github.io/Nim/lib.html](https://nim-lang.github.io/Nim/

Re: FOSDEM 2019

2019-02-01 Thread dom96
Bump for those who missed this :)

Re: no "--opt:size" leads EXE to "SIGSEGV: Illegal storage access. (Attempt to read from nil?)"

2019-02-01 Thread timothee
this helped me before: import segfaults it inserts a signal handler and outputs a stacktrace.

Re: Regex source code filter

2019-02-01 Thread Araq
New source code filters can only be done by patching the compiler. :-) And I doubt a PR would be accepted, source code filters are not loved.

Re: A bug of vcc compiler

2019-02-01 Thread slangmgh
No, the `=` function code is generated as __fastcall, and `&` function call `=` as __fastcall. If the `&` is not inlined in function `main` with compiler option `/Ob1` or `/Ob0`, then all is fine. But when the function `&` is inlined in function `main`, the code is generated as __stdcall to cal

Re: safe way to hold traced reference of unknown type?

2019-02-01 Thread yglukhov
I suggest Any should be fixed to retain references. Also you can have a look at [https://github.com/yglukhov/variant](https://github.com/yglukhov/variant), that does this.

Re: Karax question: how to update input field on the fly

2019-02-01 Thread stedi
Thanks for the info. I have to admit that it felt a bit hacky.

Know about Proxy service?

2019-02-01 Thread luminati
Advert networks use Luminati to anonymously view their advertisers' touchdown pages to make sure they do not comprise malware, or improper promoting.luminati is the biggest proxy community on the planet that is present proxy service, shared proxy,[https://luminati.io/residential_proxy](https://

Re: A bug of vcc compiler

2019-02-01 Thread mratsim
Win32 default convention for API is __stdcall, could it be related? We might be missing some declspec in the codegen.

Re: An Attempt to Access NumPy Array Data rom Nim

2019-02-01 Thread mratsim
Hey there, authore of Arraymancer here. Accessing elements using ptr arithmetic: * Usually you when you need pointer arithmetics you actually need pointer indexing similar to: let rawBuffer = [0, 1, 2, 3, 4, 5] # use unsafeAddr if let variable # or a