Re: Pro programmer

2019-08-27 Thread Jani Hur via Digitalmars-d-learn
On Tuesday, 27 August 2019 at 16:32:08 UTC, H. S. Teoh wrote: [..] you want to learn also a very high-level language that makes you think on a whole different level: I recommend Haskell or Lisp after you learn assembly language. For Lisp, Clojure (https://clojure.org/) is a strong candidate:

Re: How to concat UUID into a SQL query string to MariaDB

2019-08-27 Thread Jani Hur via Digitalmars-d-learn
On Tuesday, 27 August 2019 at 08:54:21 UTC, Anders S wrote: Hi again, the auto declaration worked as I expected my catenations should with the string Great to hear that ! Strings are a bit "different" in D. Please help yourself and read the following that IMO is the best introduction to the

Re: How to concat UUID into a SQL query string to MariaDB

2019-08-27 Thread Jani Hur via Digitalmars-d-learn
On Tuesday, 27 August 2019 at 08:08:05 UTC, Anders S wrote: Any ideas? + is not a string concatenation. Try ~ instead: auto x = "aa" ~ "bb" ~ "cc";

Re: arsd terminal with ConsoleOutputType.cellular

2019-07-15 Thread Jani Hur via Digitalmars-d-learn
On Saturday, 13 July 2019 at 14:08:26 UTC, Jani Hur wrote: Thanks for the answers Adam - I can now proceed ! I wrote two simple examples for D dummies (like me and myself) to demonstrate arsd.terminal features I'm planning to use in my "real" console "application". The examples are available

Re: arsd terminal with ConsoleOutputType.cellular

2019-07-13 Thread Jani Hur via Digitalmars-d-learn
Thanks for the answers Adam - I can now proceed !

Re: arsd terminal with ConsoleOutputType.cellular

2019-07-13 Thread Jani Hur via Digitalmars-d-learn
Other arsd.terminal related question. How to clear a line when it is re-used ? The following code snipped is expected to print: important text ! but instead it prints: important text !gless mambo-jambo (33, 0) import arsd.terminal; void main() { auto term =

arsd terminal with ConsoleOutputType.cellular

2019-07-13 Thread Jani Hur via Digitalmars-d-learn
What might be wrong with the following code below as it doesn't clear the screen and print "(0, 0)" as expected: import arsd.terminal; void main() { auto term = Terminal(ConsoleOutputType.cellular); term.clear; term.writefln("(%s, %s)", term.cursorX, term.cursorY); } If I change to the

Re: Operator overloading for size_t

2019-03-15 Thread Jani Hur via Digitalmars-d-learn
On Thursday, 14 March 2019 at 19:39:53 UTC, Alec Stewart wrote: For < and >, would one do this? I think you'd benefit a lot by reading http://ddili.org/ders/d.en/operator_overloading.html (just search for opCmp). I bet that will eliminate most of your confusion !

Re: Doubt about this book: The D Programming Language

2018-12-16 Thread Jani Hur via Digitalmars-d-learn
On Sunday, 16 December 2018 at 22:02:44 UTC, bachmeier wrote: I can recommend D Cookbook https://www.packtpub.com/application-development/d-cookbook and Learning D https://www.packtpub.com/application-development/learning-d Publish dates are 2014 and 2015. How much the language has