Comparison of Enumerations with base type of String?

2017-08-26 Thread Michael Reiland via Digitalmars-d-learn
Hey guys, I was running through a tutorial and I noticed that enums can have a base type of string. Which is interesting, but I'm wondering about comparisons. I'm guessing the comparison boils down to a pointer comparison, but I thought I'd confirm.

Re: Comparison of Enumerations with base type of String?

2017-08-26 Thread Michael Reiland via Digitalmars-d-learn
You can randomly assign a string to an enum? Or am I misunderstanding that last bit of code? Also it sounds to me like string enums are going to be slower performance wise than integer enums.

Re: Comparison of Enumerations with base type of String?

2017-08-27 Thread Michael Reiland via Digitalmars-d-learn
whoa, you can use a struct as a basetype for an enum? I'm guessing it allows you to associate more information with the enum without using lookup tables and the like? And equality is probably just a memberwise comparison of the struct itself? That seems interesting like an interesting idea,

D for Web Development?

2017-06-08 Thread Michael Reiland via Digitalmars-d-learn
Hey guys, I'm looking for a web solution that's: 1. Supported on Linux 2. Statically typed, 3. Reasonably performant, 4. Reasonably productive. 5. Simplicity (in terms of infrastructure and the language itself). The contenders as I see them are .Net Core, Go, and D. I know next to nothing a

Re: D for Web Development?

2017-06-09 Thread Michael Reiland via Digitalmars-d-learn
Thanks for the link to those resources, that'll definitely help giving me a broad overview, which for me is best. If I know something is there I can dive into the details when it becomes more important to what I'm doing. On Friday, 9 June 2017 at 03:34:20 UTC, Adam D. Ruppe wrote: anyway, if

Re: D for Web Development?

2017-06-09 Thread Michael Reiland via Digitalmars-d-learn
On Friday, 9 June 2017 at 15:07:03 UTC, Adam D. Ruppe wrote: // compile with the cgi.d, database.d, postgres.d, and dom.d library modules // and make sure your C libpq library is available. so on my computer, the // compile command is: // dmd webtest.d ~/arsd/{cgi,database,postgres,dom} -L-L/