Vibed + OpenSSL on Windows 10?

2019-01-28 Thread Suliman via Digitalmars-d-learn
Does anybody have success with using vibed 0.8.4 with OpenSSL 1.0/1.1 on Windows? I tried all possible solutions without any result. I am getting linking error: Copyright (C) Digital Mars 1989-2013 All rights reserved. http://www.digitalmars.com/ctg/optlink.html C:\Users\bubnenkov\AppData\Loc

Re: Implement Interface Using Super

2019-01-28 Thread Meta via Digitalmars-d-learn
On Monday, 28 January 2019 at 22:17:56 UTC, Steven Schveighoffer wrote: On 1/28/19 3:28 PM, Jonathan Levi wrote: On Sunday, 27 January 2019 at 09:31:46 UTC, bauss wrote: On Sunday, 27 January 2019 at 05:37:57 UTC, Jonathan Levi wrote: This works in LDC *but not* DMD? . . . Is this a bug in DMD

Re: Implement Interface Using Super

2019-01-28 Thread Steven Schveighoffer via Digitalmars-d-learn
On 1/28/19 3:28 PM, Jonathan Levi wrote: On Sunday, 27 January 2019 at 09:31:46 UTC, bauss wrote: On Sunday, 27 January 2019 at 05:37:57 UTC, Jonathan Levi wrote: This works in LDC *but not* DMD? . . . Is this a bug in DMD *or* in LDC? There is no bug here. So... LDC is the one that is bugg

Re: Should I prefix package names with the name of my program?

2019-01-28 Thread Steven Schveighoffer via Digitalmars-d-learn
On 1/28/19 4:57 PM, Steven Schveighoffer wrote: On 1/28/19 3:16 PM, H. S. Teoh wrote: On Mon, Jan 28, 2019 at 02:54:23PM -0500, Steven Schveighoffer via Digitalmars-d-learn wrote: On 1/28/19 11:59 AM, Victor Porton wrote: Should I prefix all module names with `xmlboiler.` (where XML Boiler is

Re: Should I prefix package names with the name of my program?

2019-01-28 Thread Steven Schveighoffer via Digitalmars-d-learn
On 1/28/19 3:16 PM, H. S. Teoh wrote: On Mon, Jan 28, 2019 at 02:54:23PM -0500, Steven Schveighoffer via Digitalmars-d-learn wrote: On 1/28/19 11:59 AM, Victor Porton wrote: Should I prefix all module names with `xmlboiler.` (where XML Boiler is the name of my program). These packages are expe

Re: Should I prefix package names with the name of my program?

2019-01-28 Thread Adam D. Ruppe via Digitalmars-d-learn
On Monday, 28 January 2019 at 16:59:22 UTC, Victor Porton wrote: Should I prefix all module names with `xmlboiler.` Yes. All module names should have at least two parts. If you don't, you will regret it later when you have to rename or see conflicts with other libraries.

Re: Implement Interface Using Super

2019-01-28 Thread Jonathan Levi via Digitalmars-d-learn
On Sunday, 27 January 2019 at 09:31:46 UTC, bauss wrote: On Sunday, 27 January 2019 at 05:37:57 UTC, Jonathan Levi wrote: This works in LDC *but not* DMD? . . . Is this a bug in DMD *or* in LDC? There is no bug here. So... LDC is the one that is bugged? I think it would have been nice to ha

Re: Should I prefix package names with the name of my program?

2019-01-28 Thread H. S. Teoh via Digitalmars-d-learn
On Mon, Jan 28, 2019 at 02:54:23PM -0500, Steven Schveighoffer via Digitalmars-d-learn wrote: > On 1/28/19 11:59 AM, Victor Porton wrote: > > Should I prefix all module names with `xmlboiler.` (where XML Boiler > > is the name of my program). These packages are expected to be used > > internally b

Can't build vibed:tls project

2019-01-28 Thread Suliman via Digitalmars-d-learn
If I am specifying (sic! TLS): dependency "vibe-d:tls" version="0.8.4" in my dub.sdl I am getting error when building simple project: module `vibe` is in file 'vibe\vibe.d' which cannot be read But I need to get vibed build with OpenSSL support

Re: Should I prefix package names with the name of my program?

2019-01-28 Thread Steven Schveighoffer via Digitalmars-d-learn
On 1/28/19 11:59 AM, Victor Porton wrote: Should I prefix all module names with `xmlboiler.` (where XML Boiler is the name of my program). These packages are expected to be used internally by my program, not as an exported API (however there are some little chances that in the future I will mak

Re: Why isn't intended class constructor called?

2019-01-28 Thread Alex via Digitalmars-d-learn
On Monday, 28 January 2019 at 19:24:21 UTC, Zak wrote: On Monday, 28 January 2019 at 19:15:04 UTC, Zak wrote: On Monday, 28 January 2019 at 18:50:18 UTC, Alex wrote: On Monday, 28 January 2019 at 18:34:44 UTC, Zak wrote: [...] As the error states: you are trying to append an int to a string

Re: Why isn't intended class constructor called?

2019-01-28 Thread Zak via Digitalmars-d-learn
On Monday, 28 January 2019 at 19:15:04 UTC, Zak wrote: On Monday, 28 January 2019 at 18:50:18 UTC, Alex wrote: On Monday, 28 January 2019 at 18:34:44 UTC, Zak wrote: [...] As the error states: you are trying to append an int to a string array in the single parameter constructor. [...] Th

Re: Why isn't intended class constructor called?

2019-01-28 Thread Zak via Digitalmars-d-learn
On Monday, 28 January 2019 at 18:50:18 UTC, Alex wrote: On Monday, 28 January 2019 at 18:34:44 UTC, Zak wrote: [...] As the error states: you are trying to append an int to a string array in the single parameter constructor. [...] Thanks for the response, Alex! But it's not clear to me w

Re: Why isn't intended class constructor called?

2019-01-28 Thread Alex via Digitalmars-d-learn
On Monday, 28 January 2019 at 18:34:44 UTC, Zak wrote: I have defined a class that's meant to represent a data series, which has an index and a set of values. Sometimes the user wants to specify a particular index of custom type, other times they don't care and we want to default to an array o

Why isn't intended class constructor called?

2019-01-28 Thread Zak via Digitalmars-d-learn
I have defined a class that's meant to represent a data series, which has an index and a set of values. Sometimes the user wants to specify a particular index of custom type, other times they don't care and we want to default to an array of contiguous "int" starting from 0. I have attempted

Re: Should I prefix package names with the name of my program?

2019-01-28 Thread Neia Neutuladh via Digitalmars-d-learn
On Mon, 28 Jan 2019 16:59:22 +, Victor Porton wrote: > Should I prefix all module names with `xmlboiler.` (where XML Boiler is > the name of my program). These packages are expected to be used > internally by my program, not as an exported API (however there are some > little chances that in th

Re: Ordered set container?

2019-01-28 Thread H. S. Teoh via Digitalmars-d-learn
On Mon, Jan 28, 2019 at 05:18:52PM +, Victor Porton via Digitalmars-d-learn wrote: > I want "ordered set" container (like list or vector but with the > warranty of no duplicate elements). > > Which type can I use? Try std.container.rbtree.RedBlackTree. T -- That's not a bug; that's a fea

Re: Ordered set container?

2019-01-28 Thread Neia Neutuladh via Digitalmars-d-learn
On Mon, 28 Jan 2019 17:18:52 +, Victor Porton wrote: > I want "ordered set" container (like list or vector but with the > warranty of no duplicate elements). > > Which type can I use? std.container.rbtree It has options to preserve or squash duplicates.

Re: Should I prefix package names with the name of my program?

2019-01-28 Thread H. S. Teoh via Digitalmars-d-learn
On Mon, Jan 28, 2019 at 04:59:22PM +, Victor Porton via Digitalmars-d-learn wrote: > Should I prefix all module names with `xmlboiler.` (where XML Boiler > is the name of my program). These packages are expected to be used > internally by my program, not as an exported API (however there are >

Ordered set container?

2019-01-28 Thread Victor Porton via Digitalmars-d-learn
I want "ordered set" container (like list or vector but with the warranty of no duplicate elements). Which type can I use?

Should I prefix package names with the name of my program?

2019-01-28 Thread Victor Porton via Digitalmars-d-learn
Should I prefix all module names with `xmlboiler.` (where XML Boiler is the name of my program). These packages are expected to be used internally by my program, not as an exported API (however there are some little chances that in the future I will make a public API)

Re: Is there something special required to use Appender.clear

2019-01-28 Thread Steven Schveighoffer via Digitalmars-d-learn
On 1/28/19 7:39 AM, FeepingCreature wrote: On Friday, 25 January 2019 at 14:33:16 UTC, Steven Schveighoffer wrote: On 1/25/19 3:20 AM, FeepingCreature wrote: On Thursday, 24 January 2019 at 17:49:34 UTC, Ali Çehreli wrote: Aren't the semantics of .clear that it's invalid to access references t

Re: Can LDC compile to supported legacy LLVM versions?

2019-01-28 Thread Dukc via Digitalmars-d-learn
On Monday, 28 January 2019 at 13:04:08 UTC, Nicholas Wilson wrote: Do you mean bitcode, LLVM IR or something different? The LDC built against a given version of LLVM can link to bitcode/compile LLMV IR, of that version. Bitcode in this case, but I think your following answer applies to IR/a

Re: Can LDC compile to supported legacy LLVM versions?

2019-01-28 Thread Nicholas Wilson via Digitalmars-d-learn
On Monday, 28 January 2019 at 11:37:56 UTC, Dukc wrote: I have recenty updated my LDC to the most recent version (1.14). The problem is that it compiles to LLVM code version 7.0.1, but I need it to compile to LLVM 6.x.x or LLVM 5.x.x. The last release note said that LLVM versions from 3.someth

Re: Is there something special required to use Appender.clear

2019-01-28 Thread FeepingCreature via Digitalmars-d-learn
On Friday, 25 January 2019 at 14:33:16 UTC, Steven Schveighoffer wrote: On 1/25/19 3:20 AM, FeepingCreature wrote: On Thursday, 24 January 2019 at 17:49:34 UTC, Ali Çehreli wrote: Aren't the semantics of .clear that it's invalid to access references to .data after calling .clear, period? And if

Can LDC compile to supported legacy LLVM versions?

2019-01-28 Thread Dukc via Digitalmars-d-learn
I have recenty updated my LDC to the most recent version (1.14). The problem is that it compiles to LLVM code version 7.0.1, but I need it to compile to LLVM 6.x.x or LLVM 5.x.x. The last release note said that LLVM versions from 3.something.something are supported, but does this mean only link

Re: What is the alternative to the setlocale function of c in D? Thank you.

2019-01-28 Thread John Chapman via Digitalmars-d-learn
On Sunday, 27 January 2019 at 16:23:42 UTC, FrankLike wrote: On Sunday, 27 January 2019 at 10:44:04 UTC, John Chapman wrote: On Sunday, 27 January 2019 at 06:14:15 UTC, FrankLike wrote: On Saturday, 26 January 2019 at 09:33:33 UTC, John Chapman wrote: What has that code got to do with setti