Mastering Nim: A complete guide to the programming language

2022-06-23 Thread Clavismax
As an e-book for 19.99$ I would buy it immediately, even today, but for over 60$ I will never buy it as a hobby programmer.

Mastering Nim: A complete guide to the programming language

2022-06-23 Thread Clavismax
In Germany there is a saying: "Jemand hat die Rechnung ohne den Wirt gemacht". That danger exists here. The price of the book is high (20 cents per page). It could quickly annoy someone buy the book, scan it and make it available on a platform. If I were Andreas, I'd get very angry, but not pub

'import os' not used. Wrong Error Message

2022-06-08 Thread Clavismax
Thank you, that helps me.

'import os' not used. Wrong Error Message

2022-06-07 Thread Clavismax
This code only works fine with the import statement: import os when not (declared(commandLineParams)): # POSIX available? echo("Your System ist not POSIX-Compatible.", "Your Parameters cannot be determined because the required", "Function is no

Multi-Dimensional Tuple is not working as expected

2022-06-07 Thread Clavismax
Thank you, that helps.

Multi-Dimensional Tuple is not working as expected

2022-06-07 Thread Clavismax
# First some warm-up Examples. Version A (short and long version) is working # Example-A: LONG Version type TestA = tuple valueA: int var myTestA: TestA = ( valueA: 1 ) # Example-A: SHORT Version var myTestA = ( valueA:

Is there a smarter way to change only one field value of a tuple?

2022-06-06 Thread Clavismax
Thank you!

Is there a smarter way to change only one field value of a tuple?

2022-06-06 Thread Clavismax
This one works, but is ugly, especially if the tuple consists of very many fields. var frameTextDefaults = ( author: "Thomas", version: "unknown") frameTextDefaults = ( author: "Ralf", version: frameTextDefaults.version) Run A

How to run testament Exe-Test-Files in a different Folder

2022-06-03 Thread Clavismax
I am just working my way into `testament` and wonder if it is possible to have the .exe files that `testament` creates for each test in the same folder, automatically created in a different folder (like: `project/builds/test/bin`) One possibility I have found is to include something like this in

Testament Demo: "Running a single test" is not working

2022-06-01 Thread Clavismax
Thank you! Your hint: It worked, but now the `import cmdparser` is not working anymore. Any Idea for me to help? Got this: PS K:\40-Nim\Projects\cmdparser> testament run tests/subdir/test1.nim FAIL: tests/subdir/test1.nim c ( 1.13 sec) T

Testament Demo: "Running a single test" is not working

2022-06-01 Thread Clavismax
Problem is solved: 1. create another subdir for the Test 2. change config.nims Thank you!

Testament Demo: "Running a single test" is not working

2022-06-01 Thread Clavismax
I tried a path like tests/subdir/test0.nim ==> same result :-(

Testament Demo: "Running a single test" is not working

2022-06-01 Thread Clavismax
Step by step I follow this: It's not working. I got this output: Any Ideas for helping me? PS K:\40-Nim\Projects> testament run test0.nim fatal.nim(53)sysFatal Error: unhandled exception: speci

"nimble init" creates Unittest-Example-Files that do not work

2022-06-01 Thread Clavismax
One additional question. Why is nimble demo code used by "unittest" when it is clearly proclaimed better to use "testament"?

"nimble init" creates Unittest-Example-Files that do not work

2022-06-01 Thread Clavismax
Hi I just created a Nimble package for the first time in a still empty git project (exept: Folders are already created) via `nimble init`. Nimble created some sample files for me right away. Among others: * src/private/submodule.nim * tests/config.nims * tests/test1.nim In the manual i

Trojan:Win32/Wacatac.B!ml

2022-05-26 Thread Clavismax
Very good hint. The fact that this has not yet been done shows that there is something wrong here (in the minds of those responsible).

nimsuggest Issue processing ``runnableExamples``

2022-01-05 Thread Clavismax
Will such contributions automatically lead to a bugfix or is there more to be done from my side? And if the fix comes. Is this usually a matter of days, weeks or months?

nimsuggest Issue processing ``runnableExamples``

2022-01-03 Thread Clavismax
Exactly! Like here:

nimsuggest Issue processing ``runnableExamples``

2022-01-03 Thread Clavismax
Recently I noticed that in Visual Studio Code, in cooperation with the nim-lang extension of "Saem", the display of `runnableExamples` does not work. The code-block statement, on the other hand, is processed and displayed correctly. Since it is, as I read on several pages, a better way to work w

A rant about Nim bugs

2021-12-27 Thread Clavismax
Disclaimer: Note that I don't want to attack anyone, this is just my personal opinion. Unfortunately, I have also had some experiences with bugs in nim-lang. I am a beginner and have therefore only worked on the surface with nim. I would not expect to find any bugs at this level. But unfortunat

Nim 1.6 is out!!

2021-10-19 Thread Clavismax
"Does the C:\Users\rtdie\\.nimble directory exist when it's trying to copy these?" A perfect Hint, Thank you! First I created a Dir C:\Users\rtdie\\.nimble\bin then I Exclude C:\Users\rtdie\AppData\Local\Temp\ for Defender. After that I run choosenim stable --firstinstall and it worked without

Nim 1.6 is out!!

2021-10-19 Thread Clavismax
"I would try again using choosenim without the admin mode and using the runme.bat mentioned in install instructions for choosenim." This makes no difference. Still got the same Errors

Nim 1.6 is out!!

2021-10-19 Thread Clavismax
"You should use the official Windows builds." I have no idea what you mean by that. Do you mean the manual installation? If i click on and then on "Manual installation" I get Nim: 1.4.8 Maybe a few more words to explain me that, could help me a lot

Nim 1.6 is out!!

2021-10-19 Thread Clavismax
Hi buddies, I tried unsuccessfully today to install Nim version 1.6 "cleanly" on Windows 11. There was a hail of error messages. I'm very happy if someone helps me to get over it. I did the following on a virgin Windows 11 system (running under VirtualBox): * Download choosenim-0.8.2_windows

nimble refresh: Could not download: No SSL/TLS CA certificates found.

2021-03-05 Thread Clavismax
Thank you. It worked!

nimble refresh: Could not download: No SSL/TLS CA certificates found.

2021-03-05 Thread Clavismax
I installed Nim 1.4.4 today (WIN10) and ran the command: nimble refresh Run The error message was: "Could not download: No SSL/TLS CA certificates found." under the previous Nim version this worked without problems. How can I help myself?

cairo Wrapper tests failed: could not load: libcairo-2.dll (Newbie)

2021-02-24 Thread Clavismax
wonderful. Your hint has brought me to success. Thank you very much. I am now motivated to continue.

cairo Wrapper tests failed: could not load: libcairo-2.dll (Newbie)

2021-02-23 Thread Clavismax
Well... shame on me. I have to learn much more. Thank you for all your help. I put this on hold... because I still got no png Output. I will work a while with fidget. I installed it and it works for me. It is so easy to use

cairo Wrapper tests failed: could not load: libcairo-2.dll (Newbie)

2021-02-23 Thread Clavismax
Thank you for your quick response I did this: * downloaded all dependencies from here: * * created a bin folder under ~.nimbleand copied it to ~.nimblebin Then I run: * nim c -r .fill_and_stroke.nim I got NO

cairo Wrapper tests failed: could not load: libcairo-2.dll (Newbie)

2021-02-23 Thread Clavismax
As a beginner I tried to start with cairo on nim. I did: * git clone * cd cairo * nimble install * cd tests * nim c -r arc.nim ==> could not load: libcairo-2.dll I am of course aware that I do not have cairo on my PC, but unfortunately I have no i

Invalid Indentation (newbie)

2021-02-07 Thread Clavismax
Sometimes Things to solve are so easy. Thank you to "miran" & "JohnLuck"

Invalid Indentation (newbie)

2021-02-07 Thread Clavismax
As a newbie, I simply will run this: proc printToScreenCenter(picture: string) = echo picture printToScreenCenter("Test-String"): Run and always get this: Error: invalid indentation Please HELP!