Re: How to build dll?

2020-12-03 Thread Виталий Фадеев via Digitalmars-d-learn
On Wednesday, 2 December 2020 at 19:42:37 UTC, Jack wrote: D code: import core.sys.windows.dll; mixin SimpleDllMain; version(Windows) extern(C) export int foo() { return 42; } compiled with: dmd -ofmydll.dll -shared -m32 dll.d called from: typedef int (__cdecl *MYPROC)(void); int WINA

Development: Work vs Lazy Programmers... How do you keep sanity?

2020-12-03 Thread matheus via Digitalmars-d-learn
Hi, I didn't know where to post this and I hope this is a good place. I'm a lurker in this community and I read a lot of discussions on this forum and I think there a lot of smart people around here. So I'd like to know if any of you work with Lazy or even Dumb programmers, and If yes how do

Re: Development: Work vs Lazy Programmers... How do you keep sanity?

2020-12-03 Thread Igor Shirkalin via Digitalmars-d-learn
On Thursday, 3 December 2020 at 15:18:31 UTC, matheus wrote: Hi, I didn't know where to post this and I hope this is a good place. I'm a lurker in this community and I read a lot of discussions on this forum and I think there a lot of smart people around here. So I'd like to know if any o

Re: Development: Work vs Lazy Programmers... How do you keep sanity?

2020-12-03 Thread IGotD- via Digitalmars-d-learn
On Thursday, 3 December 2020 at 15:18:31 UTC, matheus wrote: Hi, I didn't know where to post this and I hope this is a good place. I'm a lurker in this community and I read a lot of discussions on this forum and I think there a lot of smart people around here. So I'd like to know if any o

Re: Development: Work vs Lazy Programmers... How do you keep sanity?

2020-12-03 Thread Ali Çehreli via Digitalmars-d-learn
On 12/3/20 7:18 AM, matheus wrote: > I didn't know where to post this and I hope this is a good place. I appreciate the question. You can start the subject with [OT] to mean off-topic. > work with Lazy or even Dumb > programmers, and If yes how do you keep your sanity? I used to blame my co-

Re: My first application in Dlang

2020-12-03 Thread Ali Çehreli via Digitalmars-d-learn
On 12/2/20 7:54 PM, Marcone wrote: > Hi, are you Ali Çehreli author of Programming in D book? I am. > I learned Dlang > by reading this book on my Kindle. That makes me happy! :) > If I published my source code you > wouldn't understand. Still, that's the most interesting part to D programme

Re: How to build dll?

2020-12-03 Thread frame via Digitalmars-d-learn
On Wednesday, 2 December 2020 at 19:42:37 UTC, Jack wrote: What am I missing? As always... have you tired dmd -m32mscoff ?

strip in stdin

2020-12-03 Thread MGW via Digitalmars-d-learn
string[] m = stdin.byLineCopy.array; How to make strip() for each line in an expression ...