Re: Using D for Raspberry Pi expirements

2019-09-29 Thread Aldo via Digitalmars-d-learn
On Sunday, 29 September 2019 at 11:36:00 UTC, aberba wrote: On Thursday, 26 September 2019 at 00:09:30 UTC, Mike Franklin wrote: On Wednesday, 25 September 2019 at 23:56:45 UTC, aberba wrote: I'm looking for resources on using D for basic Raspberry Pi programming...stuff like turning on and off

Re: PHP to D Conversion

2019-10-18 Thread Aldo via Digitalmars-d-learn
On Friday, 18 October 2019 at 06:22:33 UTC, Vino wrote: class avmtest { private conn; You need to specify the type of conn. private Connection conn; auto avmconnect() { auto connectionStr = "host=test.srv.com;port=3910;user=testusr;pwd=#;db=test"; Conne

Re: Any 3D Game or Engine with examples/demos which just work (compile&run) out of the box on linux ?

2019-10-18 Thread Aldo via Digitalmars-d-learn
On Friday, 18 October 2019 at 19:20:04 UTC, Prokop Hapala wrote: On Friday, 18 October 2019 at 06:24:38 UTC, Ferhat Kurtulmuş wrote: On Friday, 18 October 2019 at 06:11:37 UTC, Ferhat Kurtulmuş wrote: On Friday, 18 October 2019 at 05:52:19 UTC, Prokop Hapala wrote: Already >1 year I consider to

Re: How decode encoded Base64 to string text?

2019-11-08 Thread Aldo via Digitalmars-d-learn
On Friday, 8 November 2019 at 11:46:44 UTC, Marcone wrote: I can encode "Helo World!" to Base64 and get "TWFyY29uZQ==", but if I try to decode "TWFyY29uZQ==" I can not recovery "Helo World!" but [77, 97, 114, 99, 111, 110, 101]. How can I recover "Helo World!" when decode? Thank you. ...

Re: What kind of Editor, IDE you are using and which one do you like for D language?

2019-12-22 Thread Aldo via Digitalmars-d-learn
On Sunday, 22 December 2019 at 17:20:51 UTC, BoQsc wrote: There are lots of editors/IDE's that support D language: https://wiki.dlang.org/Editors What kind of editor/IDE are you using and which one do you like the most? VSCode with D extension

Re: Compile and run in Win10-VSCode

2020-09-25 Thread Aldo via Digitalmars-d-learn
On Friday, 25 September 2020 at 13:38:56 UTC, Paul wrote: Hi Community, I'm Win10: I have VSCode installed. I have DMD installed and can compile examples from a Win CMD console. 1) How do I compile and run from within VSCode? 2) VSCode Extensions: Do I need them? One kept generat

Re: Multitasking question: Making a picture viewer, loading lots of images in the background

2019-04-03 Thread Aldo via Digitalmars-d-learn
On Wednesday, 3 April 2019 at 02:59:51 UTC, realhet wrote: Hi, I'm writing a picture browser program and I'd like to ask for a bit of assistance. [...] Hello, maybe the following links can be useful: http://ddili.org/ders/d.en/parallelism.html http://ddili.org/ders/d.en/fibers.html

Can't use threads

2019-05-04 Thread Aldo via Digitalmars-d-learn
Hello, i'm trying to run 3 threads with the following code : https://run.dlang.io/is/p4ThlD It works on run.dlang.io but not on my windows 10 : core.thread.ThreadError@src\core\thread.d(3078): Unable to load thread context If I lower the allocated ubyte array it works...can you help me ? t

Re: Can't use threads

2019-05-05 Thread Aldo via Digitalmars-d-learn
On Sunday, 5 May 2019 at 03:32:37 UTC, Andre Pany wrote: On Saturday, 4 May 2019 at 22:29:26 UTC, Aldo wrote: Does it work on windows if you compile it it as 64 bit application (-m64 argument if I remember correctly, dub argument -a x86_64)? On linux and Darwin 64 is default while on windows 3

Re: Can't use threads

2019-05-06 Thread Aldo via Digitalmars-d-learn
On Monday, 6 May 2019 at 09:46:46 UTC, Ron Tarrant wrote: On Saturday, 4 May 2019 at 22:29:26 UTC, Aldo wrote: i'm trying to run 3 threads with the following code : https://run.dlang.io/is/p4ThlD Works for me... Windows 10 Pro DMD 2.085.1 (-de -w -m64 switches) Note: I didn't use dub, so p

__gshared 32 & 64 bit

2019-05-06 Thread Aldo via Digitalmars-d-learn
Hello, is there a difference between __gshared on 32 and 64 bit apps ? I have an IOCP app on windows that works correctly when compiled as 64 bit, but crash/block when compiled as 32 bit. Thanks.

opEquals nothrow

2017-07-20 Thread Aldo via Digitalmars-d-learn
Hello, im tring to add nothrow keyword in my code, but compilation fails : function 'object.opEquals' is not nothrow its a simple comparison between 2 objects. How to make opEquals nothrow ? thanks

Re: opEquals nothrow

2017-07-20 Thread Aldo via Digitalmars-d-learn
On Thursday, 20 July 2017 at 14:59:50 UTC, Steven Schveighoffer wrote: On 7/20/17 10:38 AM, Aldo wrote: Hello, im tring to add nothrow keyword in my code, but compilation fails : function 'object.opEquals' is not nothrow its a simple comparison between 2 objects. How to make opEquals noth

Re: Containers and arrays with custom memory allocators

2017-10-17 Thread Aldo via Digitalmars-d-learn
On Tuesday, 17 October 2017 at 14:14:19 UTC, Ivan wrote: Hi, I am a C/C++ programmer interested in using D as a replacement for C/C++. I do care a lot about performance and memory management, so I want to use my own (or from std.experimental) memory allocators. Are there any good tutorials o

Override @property

2017-05-10 Thread Aldo via Digitalmars-d-learn
Hello, can you tell me if this compilation error is normal ? class Texture { public this() { } } class Control { private Texture m_texture; @property { public Texture texture() {