Re: formatting a float or double in a string with all significant digits kept

2019-10-09 Thread Jon Degenhardt via Digitalmars-d-learn
On Wednesday, 9 October 2019 at 05:46:12 UTC, berni44 wrote: On Tuesday, 8 October 2019 at 20:37:03 UTC, dan wrote: But i would like to be able to do this without knowing the expansion of pi, or writing too much code, especially if there's some d function like writeAllDigits or something simil

Re: formatting a float or double in a string with all significant digits kept

2019-10-09 Thread GreatSam4sure via Digitalmars-d-learn
On Wednesday, 9 October 2019 at 07:16:43 UTC, Jon Degenhardt wrote: On Wednesday, 9 October 2019 at 05:46:12 UTC, berni44 wrote: On Tuesday, 8 October 2019 at 20:37:03 UTC, dan wrote: But i would like to be able to do this without knowing the expansion of pi, or writing too much code, especiall

Re: Blog Post #77: Notebook, Part I

2019-10-09 Thread Ron Tarrant via Digitalmars-d-learn
On Wednesday, 9 October 2019 at 03:13:48 UTC, GreatSam4sure wrote: Good works Thanks, GreatSam4sure. Is there any way to detect the size of my screen using gtkd? So that incan calculate the size of my screen and center my window on the screen using move(x, y). I had a quick look into this

ld errors in osx Catalina

2019-10-09 Thread David Briant via Digitalmars-d-learn
I've accidentally upgraded to Catalina - a little earlier than planned as I had hoped not to be trail blazing! My problem is this, in a bash shell and a new directory when I run $ dub init ... answering the questions that dub asks $ dub dmd compiles the skeleton project but ld fails (full dump

Re: formatting a float or double in a string with all significant digits kept

2019-10-09 Thread David Briant via Digitalmars-d-learn
On Tuesday, 8 October 2019 at 20:37:03 UTC, dan wrote: I have a double precision number that i would like to print all significant digits of, but no more than what are actually present in the number. Or more exactly, i want to print the minimum number of digits necessary to recover the origina

Have DUB sub packages inherit settings

2019-10-09 Thread Dennis via Digitalmars-d-learn
I want to split my package into sub packages for faster compilation, but I have some custom settings that I don't want to copy-paste 10 times since that makes editing them really annoying. Is there a way to inherit the settings from the main-package, or avoid repetition in another way? I foun

Re: Blog Post #77: Notebook, Part I

2019-10-09 Thread GreatSam4sure via Digitalmars-d-learn
On Wednesday, 9 October 2019 at 09:44:39 UTC, Ron Tarrant wrote: On Wednesday, 9 October 2019 at 03:13:48 UTC, GreatSam4sure wrote: Good works Thanks, GreatSam4sure. Is there any way to detect the size of my screen using gtkd? So that incan calculate the size of my screen and center my wi

Functional Programming in D

2019-10-09 Thread NonNull via Digitalmars-d-learn
Hello, I want to become fluent in the use of functional programming techniques in D (as well as the use of ranges) using std.functional (and std.algorithm and whatever else is relevant). Is there anything out there that isn't just module documentation that covers the full scope of this?

Re: ld errors in osx Catalina

2019-10-09 Thread David Briant via Digitalmars-d-learn
On Wednesday, 9 October 2019 at 10:33:21 UTC, David Briant wrote: I've accidentally upgraded to Catalina - a little earlier than planned as I had hoped not to be trail blazing! My problem is this, in a bash shell and a new directory when I run $ dub init ... answering the questions that dub

Re: ld errors in osx Catalina

2019-10-09 Thread David Briant via Digitalmars-d-learn
On Wednesday, 9 October 2019 at 15:42:42 UTC, David Briant wrote: On Wednesday, 9 October 2019 at 10:33:21 UTC, David Briant wrote: [...] If I uninstall clang using conda I now get: (base) Davids-MacBook:fred david$ dub Performing "debug" build using /Library/D/dmd/bin/dmd for x86_64. fred

Re: ld errors in osx Catalina

2019-10-09 Thread rikki cattermole via Digitalmars-d-learn
On 09/10/2019 11:33 PM, David Briant wrote: I've accidentally upgraded to Catalina - a little earlier than planned as I had hoped not to be trail blazing! My problem is this, in a bash shell and a new directory when I run $ dub init ... answering the questions that dub asks $ dub dmd compiles

Re: ld errors in osx Catalina

2019-10-09 Thread Paolo Invernizzi via Digitalmars-d-learn
On Wednesday, 9 October 2019 at 16:08:41 UTC, rikki cattermole wrote: On 09/10/2019 11:33 PM, David Briant wrote: [...] D as a native language links against libc, so using the system c compiler as the linker is a viable method to prevent having to look things up. Perhaps try ldc? That uses

Re: Functional Programming in D

2019-10-09 Thread Jonathan Gerlach via Digitalmars-d-learn
On Wednesday, 9 October 2019 at 14:26:53 UTC, NonNull wrote: Hello, I want to become fluent in the use of functional programming techniques in D (as well as the use of ranges) using std.functional (and std.algorithm and whatever else is relevant). Is there anything out there that isn't just mo

Re: Functional Programming in D

2019-10-09 Thread H. S. Teoh via Digitalmars-d-learn
On Wed, Oct 09, 2019 at 05:41:02PM +, Jonathan Gerlach via Digitalmars-d-learn wrote: > On Wednesday, 9 October 2019 at 14:26:53 UTC, NonNull wrote: > > Hello, > > I want to become fluent in the use of functional programming > > techniques in D (as well as the use of ranges) using std.function

Re: Functional Programming in D

2019-10-09 Thread SrMordred via Digitalmars-d-learn
https://garden.dlang.io/