Re: Why double not? (!!)

2016-11-18 Thread Is it possible to store different generic types? via Digitalmars-d-learn
On Saturday, 19 November 2016 at 06:58:38 UTC, Era Scarecrow wrote: On Saturday, 19 November 2016 at 04:54:22 UTC, Xinok wrote: On Saturday, 19 November 2016 at 03:52:02 UTC, Ryan wrote: Why do I see double `not` operators sometimes in D code? An example it the last post of this thread.

Re: what is mean? ( Offset 78887H Record Type 00C3)

2016-11-18 Thread Nicholas Wilson via Digitalmars-d-learn
On Saturday, 19 November 2016 at 06:54:37 UTC, xky wrote: hello. i got a problem when i build my source code(windows7 x64 / DMD32 D Compiler v2.072.0), here: OPTLINK (R) for Win32 Release 8.00.17 Copyright (C) Digital Mars

Re: Why double not? (!!)

2016-11-18 Thread Era Scarecrow via Digitalmars-d-learn
On Saturday, 19 November 2016 at 04:54:22 UTC, Xinok wrote: On Saturday, 19 November 2016 at 03:52:02 UTC, Ryan wrote: Why do I see double `not` operators sometimes in D code? An example it the last post of this thread. http://forum.dlang.org/thread/ktlpnikvdwgbvfaam...@forum.dlang.org

what is mean? ( Offset 78887H Record Type 00C3)

2016-11-18 Thread xky via Digitalmars-d-learn
hello. i got a problem when i build my source code(windows7 x64 / DMD32 D Compiler v2.072.0), here: OPTLINK (R) for Win32 Release 8.00.17 Copyright (C) Digital Mars 1989-2013 All rights reserved.

Re: fPIC Error

2016-11-18 Thread deadalnix via Digitalmars-d-learn
On Thursday, 3 November 2016 at 06:11:48 UTC, rikki cattermole wrote: [Environment32] DFLAGS=-I/usr/include/dmd/phobos -I/usr/include/dmd/druntime/import -L-L/usr/lib/i386-linux-gnu -L--export-dynamic -fPIC -defaultlib=libphobos2.so [Environment64] DFLAGS=-I/usr/include/dmd/phobos

Creating shared library on Monodevelop with MonoD, Implib problem

2016-11-18 Thread tcak via Digitalmars-d-learn
I am on Ubuntu. I try to create a very basic (one empty function declaration) shared library for testing. MonoD (version 2.14.5), generates a command line similar to following: dmd -debug -gc "myclass.d" "-I/usr/include/dmd" "-L/IMPLIB:/home/user/Projects/Router/bin/Debug/libRouter.a"

Re: Why double not? (!!)

2016-11-18 Thread Xinok via Digitalmars-d-learn
On Saturday, 19 November 2016 at 03:52:02 UTC, Ryan wrote: Why do I see double `not` operators sometimes in D code? An example it the last post of this thread. http://forum.dlang.org/thread/ktlpnikvdwgbvfaam...@forum.dlang.org import core.sys.windows.windows : GetConsoleCP; bool hasConsole =

Why double not? (!!)

2016-11-18 Thread Ryan via Digitalmars-d-learn
Why do I see double `not` operators sometimes in D code? An example it the last post of this thread. http://forum.dlang.org/thread/ktlpnikvdwgbvfaam...@forum.dlang.org import core.sys.windows.windows : GetConsoleCP; bool hasConsole = !!GetConsoleCP(); Thanks.

Re: the best language I have ever met(?)

2016-11-18 Thread ketmar via Digitalmars-d-learn
On Saturday, 19 November 2016 at 00:28:36 UTC, Stefan Koch wrote: Please don't post non-d. it slipped accidentally, sorry. ;-) for OP: `uint[2] a = [42, 69];` is the correct syntax.

Re: the best language I have ever met(?)

2016-11-18 Thread Stefan Koch via Digitalmars-d-learn
On Friday, 18 November 2016 at 21:28:44 UTC, ketmar wrote: On Friday, 18 November 2016 at 20:31:57 UTC, Igor Shirkalin wrote: After 2 hours of brain breaking (as D newbie) I have come to: uint_array.map!(v=>"%x".format(v)).join(", ") Why 2 hours? Because I have started with 'joiner' function

Re: the best language I have ever met(?)

2016-11-18 Thread ketmar via Digitalmars-d-learn
On Friday, 18 November 2016 at 20:31:57 UTC, Igor Shirkalin wrote: After 2 hours of brain breaking (as D newbie) I have come to: uint_array.map!(v=>"%x".format(v)).join(", ") Why 2 hours? Because I have started with 'joiner' function and aftewords found out the 'join'. To my mind there is

Re: the best language I have ever met(?)

2016-11-18 Thread Igor Shirkalin via Digitalmars-d-learn
On Friday, 18 November 2016 at 19:47:17 UTC, H. S. Teoh wrote: On Fri, Nov 18, 2016 at 11:43:49AM -0800, H. S. Teoh via Digitalmars-d-learn wrote: [...] Yes, I meant 'sentiments' as in опыта, not as in сентметальность. :-) [...] Sorry, typo. I meant сентиментальности. But I think you

Re: the best language I have ever met(?)

2016-11-18 Thread Igor Shirkalin via Digitalmars-d-learn
On Friday, 18 November 2016 at 19:47:17 UTC, H. S. Teoh wrote: Yes, I meant 'sentiments' as in опыта, not as in сентметальность. :-) [...] Sorry, typo. I meant сентиментальности. But I think you understand what I mean. :-) Oh, I think you understand what you think what I mean :)

Re: the best language I have ever met(?)

2016-11-18 Thread Igor Shirkalin via Digitalmars-d-learn
On Friday, 18 November 2016 at 19:43:49 UTC, H. S. Teoh wrote: I was a little bit afraid of my missunderstanding in terms of sentiments. You've got me right (I don't quite feel the meaning of that in these non-cyrillic letters:). But what I understand is the path you have walked and what I

Re: the best language I have ever met(?)

2016-11-18 Thread Igor Shirkalin via Digitalmars-d-learn
On Friday, 18 November 2016 at 19:43:49 UTC, H. S. Teoh wrote: I was a little bit afraid of my missunderstanding in terms of sentiments. You've got me right (I don't quite feel the meaning of that in these non-cyrillic letters:). But what I understand is the path you have walked and what I

Re: the best language I have ever met(?)

2016-11-18 Thread H. S. Teoh via Digitalmars-d-learn
On Fri, Nov 18, 2016 at 11:43:49AM -0800, H. S. Teoh via Digitalmars-d-learn wrote: [...] > Yes, I meant 'sentiments' as in опыта, not as in сентметальность. :-) [...] Sorry, typo. I meant сентиментальности. But I think you understand what I mean. :-) T -- The most powerful one-line C

Re: the best language I have ever met(?)

2016-11-18 Thread H. S. Teoh via Digitalmars-d-learn
On Fri, Nov 18, 2016 at 07:26:56PM +, Igor Shirkalin via Digitalmars-d-learn wrote: > On Friday, 18 November 2016 at 18:14:41 UTC, H. S. Teoh wrote: > > Welcome, Igor! > Hello, Teoh! > > > > Your sentiments reflect mine years ago when I first discovered D. I > > came from a C/C++/Perl

Re: the best language I have ever met(?)

2016-11-18 Thread Igor Shirkalin via Digitalmars-d-learn
On Friday, 18 November 2016 at 18:14:41 UTC, H. S. Teoh wrote: Welcome, Igor! Hello, Teoh! Your sentiments reflect mine years ago when I first discovered D. I came from a C/C++/Perl background. It was also Andrei's book that got me started; in those early days documentation was scant and

Re: the best language I have ever met(?)

2016-11-18 Thread H. S. Teoh via Digitalmars-d-learn
On Fri, Nov 18, 2016 at 05:54:52PM +, Igor Shirkalin via Digitalmars-d-learn wrote: > The simpler - the better. > After reading "D p.l." by A.Alexandrescu two years ago I have found my > past dream. It's theory to start with. That book should be read at > least two times especially if you

the best language I have ever met(?)

2016-11-18 Thread Igor Shirkalin via Digitalmars-d-learn
The simpler - the better. After reading "D p.l." by A.Alexandrescu two years ago I have found my past dream. It's theory to start with. That book should be read at least two times especially if you have asm/c/c++/python3/math/physics background, and dealt with Watcom/Symantec C/C++ compilers

Re: Why is three safety levels need in D?

2016-11-18 Thread Kagamin via Digitalmars-d-learn
On Thursday, 17 November 2016 at 17:18:27 UTC, Nordlöw wrote: Why does D need both `@safe`, `@trusted` and `@system` when Rust seems to get by with only safe (default) and `unsafe`? Rust has 3 levels of safety: the code inside unsafe block is @system, and the unsafe block as a whole is a

Re: -fPIC related error compiling hello_world.d with dmd

2016-11-18 Thread Alessandro via Digitalmars-d-learn
On Friday, 18 November 2016 at 14:54:29 UTC, Alessandro wrote: On Friday, 18 November 2016 at 14:10:43 UTC, rikki cattermole wrote: No problem, its Ubuntu/Debian has moved over to a hardened mode fairly recently and we haven't updated to match it yet. I see. I'm happy to hear things will

Re: -fPIC related error compiling hello_world.d with dmd

2016-11-18 Thread Alessandro via Digitalmars-d-learn
On Friday, 18 November 2016 at 14:10:43 UTC, rikki cattermole wrote: No problem, its Ubuntu/Debian has moved over to a hardened mode fairly recently and we haven't updated to match it yet. I see. I'm happy to hear things will settle again when the .deb package will be update. By the way, I

Re: -fPIC related error compiling hello_world.d with dmd

2016-11-18 Thread rikki cattermole via Digitalmars-d-learn
On 19/11/2016 3:05 AM, Alessandro wrote: On Friday, 18 November 2016 at 13:12:14 UTC, rikki cattermole wrote: On 19/11/2016 2:09 AM, Alessandro wrote: Hi everyone, I'm almost ashamed to ask help on this... I used dmd/dub on an arch linux machine for some time in the past without any problem.

Re: -fPIC related error compiling hello_world.d with dmd

2016-11-18 Thread Alessandro via Digitalmars-d-learn
On Friday, 18 November 2016 at 13:12:14 UTC, rikki cattermole wrote: On 19/11/2016 2:09 AM, Alessandro wrote: Hi everyone, I'm almost ashamed to ask help on this... I used dmd/dub on an arch linux machine for some time in the past without any problem. Now I'm experiencing a strange problem

Re: -fPIC related error compiling hello_world.d with dmd

2016-11-18 Thread rikki cattermole via Digitalmars-d-learn
On 19/11/2016 2:09 AM, Alessandro wrote: Hi everyone, I'm almost ashamed to ask help on this... I used dmd/dub on an arch linux machine for some time in the past without any problem. Now I'm experiencing a strange problem after switching to a debian jessie (testing) machine when compiling even

-fPIC related error compiling hello_world.d with dmd

2016-11-18 Thread Alessandro via Digitalmars-d-learn
Hi everyone, I'm almost ashamed to ask help on this... I used dmd/dub on an arch linux machine for some time in the past without any problem. Now I'm experiencing a strange problem after switching to a debian jessie (testing) machine when compiling even the simplest hello_world application :(