Re: Idioms you use

2015-09-29 Thread Cauterite via Digitalmars-d
On Monday, 28 September 2015 at 21:40:45 UTC, Freddy wrote: Are any D idioms you use that you like to share? I'm not sure if these fit under the definition of 'idiom', but they sort of are… I think. http://dpaste.dzfl.pl/f66a76a7411f You could even extend the concept with opDispatch to

Re: GuiDub

2015-09-29 Thread ponce via Digitalmars-d
On Tuesday, 29 September 2015 at 05:17:42 UTC, Jacob wrote: Does anyone actually maintain all this or use it? Cause surely I shouldn't be getting errors like this? I have about 50 packages in my dub.json and they all came from copying the dependency directly(so no mistake on my part).

Get template parameter value

2015-09-29 Thread rumbu via Digitalmars-d-learn
Having a template: struct SomeStruct(int size) { } Is there any language trait returning the value of size template parameter for the template instantiation SomeStruct!10? In fact, I'm interested in an eponymous template to test if some type is a template inttantation for SomeStruct(int

Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread Russel Winder via Digitalmars-d-announce
On Tue, 2015-09-29 at 03:53 +, Sebastiaan Koppe via Digitalmars-d -announce wrote: > This library[1] allows you to send multi-part emails with > attachments. This code looks so similar to the equivalent in Python, it is great. Does it need Vibe underneath it though to work, or is this a

Re: GuiDub

2015-09-29 Thread Jonathan M Davis via Digitalmars-d
On Tuesday, 29 September 2015 at 07:47:31 UTC, Sönke Ludwig wrote: Am 29.09.2015 um 08:20 schrieb Jonathan M Davis: (...) What would probably be more interesting is if dub were turned into a library (or at least, if it guts were turned into a library, and the command-line tool, dub, then

Re: GuiDub

2015-09-29 Thread ponce via Digitalmars-d
On Tuesday, 29 September 2015 at 05:17:42 UTC, Jacob wrote: "dsfml": "~master", "std_event": "~master", "derelict_extras-glib": "~master", "netstack": "~master", "luad": "~master",

Re: Pathing in the D ecosystem is generally broken (at least on windows)

2015-09-29 Thread Walter Bright via Digitalmars-d
On 9/28/2015 11:16 PM, Jonathan M Davis wrote: Well, I would have thought that it was clearly designed with the idea that you'd click on the edit button to edit it. And you can copy and paste the data from the edit dialog. I should be able to copy any text on the screen.

Re: GuiDub

2015-09-29 Thread Sönke Ludwig via Digitalmars-d
Am 29.09.2015 um 07:17 schrieb Jacob: On Tuesday, 29 September 2015 at 04:01:18 UTC, Jacob wrote: On Tuesday, 29 September 2015 at 03:28:41 UTC, Rikki Cattermole wrote: On 29/09/15 3:47 PM, Jacob wrote: Idea: A gui app for dub that you run, it downloads the package info from the repository

OllyDbg

2015-09-29 Thread Cauterite via Digitalmars-d-debugger
I'm surprised OllyDbg hasn't been mentioned in this group before. For 32-bit Windows it's certainly a viable option; vastly preferable over WinDBG for sure. Here's how I have it set up: http://imgur.com/53a4iUS You can see its support for PDB debugging information, with the source listed next

Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread Sebastiaan Koppe via Digitalmars-d-announce
On Tuesday, 29 September 2015 at 06:18:32 UTC, Suliman wrote: Does it's work with anything except localhost? Could you add example of sending email with gmail? It is in the settings variable. Look at vibe.mail.SMTPClientSettings. http://vibed.org/api/vibe.mail.smtp/SMTPClientSettings In my

Re: Go 1.5

2015-09-29 Thread Ola Fosheim Grøstad via Digitalmars-d-announce
On Sunday, 27 September 2015 at 16:54:52 UTC, Martin Nowak wrote: On 09/24/2015 03:49 AM, Ola Fosheim Grøstad wrote: I haven't read the paper, but how does this solve collecting things like strings, or other "leaf types" when you use separate compilation units? We'd use runtime typeinfo.

Re: enum to flags

2015-09-29 Thread Nicholas Wilson via Digitalmars-d-learn
On Tuesday, 29 September 2015 at 06:08:03 UTC, Cauterite wrote: On Tuesday, 29 September 2015 at 03:31:44 UTC, Nicholas Wilson wrote: so I have a bunch of enums (0 .. n) that i also want to represent as flags ( 1 << n foreach n ). Is there anyway to do this other than a string mixin? You

Re: GuiDub

2015-09-29 Thread Sönke Ludwig via Digitalmars-d
Am 29.09.2015 um 08:20 schrieb Jonathan M Davis: (...) What would probably be more interesting is if dub were turned into a library (or at least, if it guts were turned into a library, and the command-line tool, dub, then used that library), and then IDEs could manipulate the spec files via

Re: Moving back to .NET

2015-09-29 Thread Ola Fosheim Grøstad via Digitalmars-d
On Tuesday, 29 September 2015 at 05:52:13 UTC, Ola Fosheim Grøstad wrote: What tools can D successfully replace? Give a focused answer to that and you can improve on D to a level where it becomes attractive. But keep it real. Fear among programmers is not D's main issue. That's just an

Re: Pathing in the D ecosystem is generally broken (at least on windows)

2015-09-29 Thread Jonathan M Davis via Digitalmars-d
On Tuesday, 29 September 2015 at 03:33:20 UTC, Walter Bright wrote: On 9/28/2015 6:42 PM, Jonathan M Davis wrote: On Monday, 28 September 2015 at 23:44:55 UTC, Walter Bright wrote: On 9/28/2015 2:41 PM, rumbu wrote: Pressing Ctrl-C in any *standard* dialog will copy the text to clipboard

Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread Suliman via Digitalmars-d-announce
Does it's work with anything except localhost? Could you add example of sending email with gmail?

Re: This Week in D #37 - forum tutorials and tip on using UDAs

2015-09-29 Thread Jacob Carlborg via Digitalmars-d-announce
On 2015-09-28 15:03, Adam D. Ruppe wrote: The tip here is one I've been talking about on irc a little and decided to write up this time. Using a mixin template to hold the source code of a thing to be transformed is something I think is kinda cool though I haven't actually used it in a real

Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 29 September 2015 at 12:43:19 UTC, Daniel Kozak wrote: It would be nice to have all of yours stuff on code.dlang.org. I'm slowly working on it. Got some working just yesterday: http://code.dlang.org/packages/arsd-official but the repo doesn't let you show subpackages, argh. dub

Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread Sebastiaan Koppe via Digitalmars-d-announce
On Tuesday, 29 September 2015 at 12:43:19 UTC, Daniel Kozak wrote: Adam D.Ruppe píše v Út 29. 09. 2015 v 12:05 +: If you ever need something in D, ask me first there's a good chance I've written it! https://github.com/adamdruppe/arsd/blob/master/email.d there's also a good chance

Re: GuiDub

2015-09-29 Thread Jacob Carlborg via Digitalmars-d
On 2015-09-29 09:47, Sönke Ludwig wrote: It is usable as a library! The API still needs a review pass before it can be declared stable for 1.0.0, though, because it wasn't initially considered as an external API and is still lacking in some areas, such as documentation. Ideally the library on

Re: enum to flags

2015-09-29 Thread Cauterite via Digitalmars-d-learn
On Tuesday, 29 September 2015 at 03:31:44 UTC, Nicholas Wilson wrote: so I have a bunch of enums (0 .. n) that i also want to represent as flags ( 1 << n foreach n ). Is there anyway to do this other than a string mixin? You could cheat with operator overloading: enum blah {

Re: GuiDub

2015-09-29 Thread Jonathan M Davis via Digitalmars-d
On Tuesday, 29 September 2015 at 02:47:32 UTC, Jacob wrote: Idea: A gui app for dub that you run, it downloads the package info from the repository and you can select a project or create a new one and it will automatically add or remove dependencies? I'm having to browse the repository then

Re: A new article about working with files in D

2015-09-29 Thread Suliman via Digitalmars-d-announce
Big thanks! It's very helpful for newcomers. D need extend Phobos docs with such examples. Is there any plan to do it, because it's often it's hard to understand how to proper use functions. Also I think you need to add example of getting file list (all and with specified extension). Also

Re: GuiDub

2015-09-29 Thread ponce via Digitalmars-d
On Tuesday, 29 September 2015 at 07:43:10 UTC, Sönke Ludwig wrote: I'd say that there simply are version conflicts within this huge dependency graph (e.g. "meatbox" requires "gl3n" 1.1.0, but another dependency requires 1.0.0). The current dependency resolution algorithm (which is planned to

Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread Daniel Kozak via Digitalmars-d-announce
Adam D.Ruppe píše v Út 29. 09. 2015 v 12:05 +: > On Tuesday, 29 September 2015 at 08:54:39 UTC, Daniel Kozak wrote: > > Wow, I need something like this 3 weeks ago, but I dont have > > time to implement this myself, so I end up with phpMailer. Now > > I can switch my little e-mailing system

Re: enum to flags

2015-09-29 Thread Meta via Digitalmars-d-learn
On Tuesday, 29 September 2015 at 03:31:44 UTC, Nicholas Wilson wrote: so I have a bunch of enums (0 .. n) that i also want to represent as flags ( 1 << n foreach n ). Is there anyway to do this other than a string mixin? use like: enum blah { foo, bar, baz, } alias blahFlags =

Re: enum to flags

2015-09-29 Thread Nicholas Wilson via Digitalmars-d-learn
On Tuesday, 29 September 2015 at 09:18:52 UTC, John Colvin wrote: On Tuesday, 29 September 2015 at 03:31:44 UTC, Nicholas Wilson wrote: so I have a bunch of enums (0 .. n) that i also want to represent as flags ( 1 << n foreach n ). Is there anyway to do this other than a string mixin? use

Re: Moving back to .NET

2015-09-29 Thread John Colvin via Digitalmars-d
On Tuesday, 29 September 2015 at 11:40:20 UTC, Ola Fosheim Grøstad wrote: On Tuesday, 29 September 2015 at 09:02:13 UTC, John Colvin wrote: actually use the product. If you can put your theoretical mind on hold for a few days and actually immerse yourself in the language and its idioms for

Re: Idioms you use

2015-09-29 Thread anonymous via Digitalmars-d
On Tuesday 29 September 2015 15:06, Cauterite wrote: > some statements Buf of course! I totally didn't think of multiple statements. Thanks.

Re: GuiDub

2015-09-29 Thread Jacob Carlborg via Digitalmars-d
On 2015-09-29 08:20, Jonathan M Davis wrote: I expect that most of the folks around here would just as soon edit the dub.json file, considering that most of the folks around here aren't big fans of IDEs. But if you think that a GUI-based tool to edit dub.json files would be useful, then feel

Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread Suliman via Digitalmars-d-announce
On Tuesday, 29 September 2015 at 08:17:42 UTC, Sebastiaan Koppe wrote: On Tuesday, 29 September 2015 at 06:18:32 UTC, Suliman wrote: Does it's work with anything except localhost? Could you add example of sending email with gmail? It is in the settings variable. Look at

[Issue 15110] pragma(inline) rarely works how I want it to

2015-09-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15110 yebblies changed: What|Removed |Added CC||yebbl...@gmail.com ---

Re: This Week in D #37 - forum tutorials and tip on using UDAs

2015-09-29 Thread Jacob Carlborg via Digitalmars-d-announce
On 2015-09-29 14:10, Adam D. Ruppe wrote: Though, I just had an idea on how that might be simplified don't recreate them, just alias them! So, conceptually, you'd do something like: template transformer(alias member) { static if(hasUDA!(member, thing))

Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread Robert M. Münch via Digitalmars-d-announce
On 2015-09-29 03:53:44 +, Sebastiaan Koppe said: This library[1] allows you to send multi-part emails with attachments. ``` Mail email = new Mail; email.headers["Date"] = Clock.currTime().toRFC822DateTimeString(); email.headers["Sender"] = "Domain.com Contact Form "; email.headers["From"]

Re: Pathing in the D ecosystem is generally broken (at least on windows)

2015-09-29 Thread Kagamin via Digitalmars-d
On Monday, 28 September 2015 at 19:44:11 UTC, Walter Bright wrote: This really blows when you've got a message window with an error message in it, and you cannot copy it to google it. You cannot copy the "About" dialog box text, either, so you have to painfully type in the version/build number

Re: Idioms you use

2015-09-29 Thread anonymous via Digitalmars-d
On Monday 28 September 2015 23:40, Freddy wrote: > Are any D idioms you use that you like to share? > Heres one of mine > --- > enum ctfe = > { > return 0xdead & 0xbad; > }(); > --- Why not just `enum ctfe = 0xdead & 0xbad;`? Are there cases where `enum foo = {return bar;}();` works but

Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread Sebastiaan Koppe via Digitalmars-d-announce
On Tuesday, 29 September 2015 at 12:26:58 UTC, Robert M. Münch wrote: Not that I'm to deep into the code nor D but would it be possible to write it somehow like this: Mail email = new Mail; email.headers = [ "Date" Clock..., "Sender" ... ] This would be a much more

Re: Idioms you use

2015-09-29 Thread Adam D. Ruppe via Digitalmars-d
On Tuesday, 29 September 2015 at 12:52:36 UTC, anonymous wrote: Are there cases where `enum foo = {return bar;}();` works but `enum foo = bar;` doesn't? And if there are, aren't they compiler bugs? If it is more complex than just one statement, putting it in a function lets you execute

Re: Idioms you use

2015-09-29 Thread Cauterite via Digitalmars-d
On Tuesday, 29 September 2015 at 12:52:36 UTC, anonymous wrote: Why not just `enum ctfe = 0xdead & 0xbad;`? Are there cases where `enum foo = {return bar;}();` works but `enum foo = bar;` doesn't? And if there are, aren't they compiler bugs? I'm pretty sure he's talking about the general

Parser assertion

2015-09-29 Thread Andrea Fontana via Digitalmars-d
This (wrong!) code: struct ExampleStruct(S) { } template ExampleTemplate(K) { enum ExampleTemplate(struct ExampleStruct(K)) = K; } void main() { } Trigger a parser error: dmd: parse.c:4226: Dsymbols* Parser::parseAutoDeclarations(StorageClass, const utf8_t*): Assertion

Re: Moving back to .NET

2015-09-29 Thread John Colvin via Digitalmars-d
On Tuesday, 29 September 2015 at 06:16:18 UTC, Ola Fosheim Grøstad wrote: D2 is pretty much C++ with a Boehm collector attached to it. So to get traction D has to improve on that model significantly OR change direction completely. You speak like someone who's read the spec, but doesn't

Re: Do users need to install VS runtime redistributable if linking with Microsoft linker?

2015-09-29 Thread Sebastiaan Koppe via Digitalmars-d-learn
On Tuesday, 29 September 2015 at 09:15:29 UTC, ponce wrote: On Monday, 28 September 2015 at 16:01:54 UTC, Sebastiaan Koppe wrote: I could not find out which redistributable I had to install (what version of VS did you have installed / on what version of windows are you?). I decided to install

Re: Get template parameter value

2015-09-29 Thread John Colvin via Digitalmars-d-learn
On Tuesday, 29 September 2015 at 09:53:39 UTC, Kagamin wrote: On Tuesday, 29 September 2015 at 09:11:15 UTC, John Colvin wrote: Welcome to the weird and wonderful work of http://dlang.org/expression.html#IsExpression No, use template pattern matching instead: struct A(int s){} template

Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 29 September 2015 at 08:54:39 UTC, Daniel Kozak wrote: Wow, I need something like this 3 weeks ago, but I dont have time to implement this myself, so I end up with phpMailer. Now I can switch my little e-mailing system to Dlang. Thank you. If you ever need something in D, ask me

Re: running code on the homepage

2015-09-29 Thread Damian Ziemba via Digitalmars-d
On Monday, 28 September 2015 at 14:15:18 UTC, ixid wrote: On Thursday, 17 September 2015 at 14:48:07 UTC, nazriel wrote: On Wednesday, 16 September 2015 at 20:52:08 UTC, Andrei Alexandrescu wrote: On 09/16/2015 09:49 AM, nazriel wrote: [...] That's great, thanks for doing this. What is the

Re: Pathing in the D ecosystem is generally broken (at least on windows)

2015-09-29 Thread Jonathan M Davis via Digitalmars-d
On Tuesday, 29 September 2015 at 07:29:23 UTC, Walter Bright wrote: On 9/28/2015 11:16 PM, Jonathan M Davis wrote: Well, I would have thought that it was clearly designed with the idea that you'd click on the edit button to edit it. And you can copy and paste the data from the edit dialog.

Re: zip packages to pack modules

2015-09-29 Thread bachmeier via Digitalmars-d
On Tuesday, 29 September 2015 at 05:24:49 UTC, tcak wrote: Use Case * Include libraries in a project in one step. * Versioning is much easier. Programmer creates a library with many modules in it. ZIP packs them, and gives a version number to it in filename. No more changes will be

[Issue 15127] Parser assertion on wrong code

2015-09-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15127 ag0ae...@gmail.com changed: What|Removed |Added Keywords||ice CC|

[Issue 15127] Parser assertion on wrong code

2015-09-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15127 Kenji Hara changed: What|Removed |Added Keywords||pull

Re: Get template parameter value

2015-09-29 Thread Andrea Fontana via Digitalmars-d-learn
On Tuesday, 29 September 2015 at 07:50:42 UTC, rumbu wrote: Having a template: struct SomeStruct(int size) { } Is there any language trait returning the value of size template parameter for the template instantiation SomeStruct!10? Something like this is ok? struct SomeStruct(int size) {

Re: GuiDub

2015-09-29 Thread Kagamin via Digitalmars-d
On Tuesday, 29 September 2015 at 08:04:57 UTC, ponce wrote: I think you said once that the dependency resolution is NP-complete. Exponential algorithmic complexity.

Re: Parser assertion

2015-09-29 Thread Andrea Fontana via Digitalmars-d
On Tuesday, 29 September 2015 at 08:59:35 UTC, Jonathan M Davis wrote: On Tuesday, 29 September 2015 at 08:51:42 UTC, Andrea Fontana wrote: This (wrong!) code: struct ExampleStruct(S) { } template ExampleTemplate(K) { enum ExampleTemplate(struct ExampleStruct(K)) = K; } void main() {

Re: enum to flags

2015-09-29 Thread John Colvin via Digitalmars-d-learn
On Tuesday, 29 September 2015 at 03:31:44 UTC, Nicholas Wilson wrote: so I have a bunch of enums (0 .. n) that i also want to represent as flags ( 1 << n foreach n ). Is there anyway to do this other than a string mixin? use like: enum blah { foo, bar, baz, } alias blahFlags =

Re: Do users need to install VS runtime redistributable if linking with Microsoft linker?

2015-09-29 Thread ponce via Digitalmars-d-learn
On Monday, 28 September 2015 at 16:01:54 UTC, Sebastiaan Koppe wrote: I could not find out which redistributable I had to install (what version of VS did you have installed / on what version of windows are you?). I decided to install them all, but couldn't install the one for 2015 (due to

Re: Do users need to install VS runtime redistributable if linking with Microsoft linker?

2015-09-29 Thread Kagamin via Digitalmars-d-learn
On Monday, 28 September 2015 at 16:36:47 UTC, ponce wrote: OK, but why does that need to happen? I don't get why does linking with MS linker implies a runtime dependency. I thought we would be left out of these sort of problems when using D :( About universal CRT:

Re: New blog about D

2015-09-29 Thread Chris via Digitalmars-d-announce
On Tuesday, 29 September 2015 at 04:19:58 UTC, Mike Parker wrote: On Monday, 28 September 2015 at 14:26:35 UTC, Chris wrote: I really don't like blog posts that have overly broad titles when the subject matter is technical. I think the title should be as specific as possible so that I know

Re: std.data.json formal review

2015-09-29 Thread Marc Schütz via Digitalmars-d
On Monday, 28 September 2015 at 07:02:35 UTC, Marco Leise wrote: Am Tue, 18 Aug 2015 09:05:32 + schrieb "Marc Schütz" : Or, as above, leave it to the end user and provide a `to(T)` method that can support built-in types and `BigInt` alike. You mean the user should write

Re: Moving back to .NET

2015-09-29 Thread Ola Fosheim Grøstad via Digitalmars-d
On Tuesday, 29 September 2015 at 09:02:13 UTC, John Colvin wrote: actually use the product. If you can put your theoretical mind on hold for a few days and actually immerse yourself in the language and its idioms for practical use*, you'd see that D has a large feature-overlap with to

Re: Pathing in the D ecosystem is generally broken (at least on windows)

2015-09-29 Thread Kagamin via Digitalmars-d
On Monday, 28 September 2015 at 23:44:55 UTC, Walter Bright wrote: On 9/28/2015 2:41 PM, rumbu wrote: Pressing Ctrl-C in any *standard* dialog will copy the text to clipboard since Windows 2000, even captions and buttons. Nope. Doesn't work in the Environment Variables dialog box. Doesn't

Re: Get template parameter value

2015-09-29 Thread Andrea Fontana via Digitalmars-d-learn
On Tuesday, 29 September 2015 at 08:44:03 UTC, Andrea Fontana wrote: On Tuesday, 29 September 2015 at 07:50:42 UTC, rumbu wrote: Having a template: struct SomeStruct(int size) { } Is there any language trait returning the value of size template parameter for the template instantiation

[Issue 15127] New: Parser assertion on wrong code

2015-09-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15127 Issue ID: 15127 Summary: Parser assertion on wrong code Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement Priority:

Re: Parser assertion

2015-09-29 Thread Jonathan M Davis via Digitalmars-d
On Tuesday, 29 September 2015 at 08:51:42 UTC, Andrea Fontana wrote: This (wrong!) code: struct ExampleStruct(S) { } template ExampleTemplate(K) { enum ExampleTemplate(struct ExampleStruct(K)) = K; } void main() { } Trigger a parser error: dmd: parse.c:4226: Dsymbols*

Re: Get template parameter value

2015-09-29 Thread rumbu via Digitalmars-d-learn
On Tuesday, 29 September 2015 at 09:53:39 UTC, Kagamin wrote: On Tuesday, 29 September 2015 at 09:11:15 UTC, John Colvin wrote: Welcome to the weird and wonderful work of http://dlang.org/expression.html#IsExpression No, use template pattern matching instead: struct A(int s){} template

Re: Get template parameter value

2015-09-29 Thread John Colvin via Digitalmars-d-learn
On Tuesday, 29 September 2015 at 07:50:42 UTC, rumbu wrote: Having a template: struct SomeStruct(int size) { } Is there any language trait returning the value of size template parameter for the template instantiation SomeStruct!10? This should do it (untested): template SomeStructSize(T)

Re: Moving back to .NET

2015-09-29 Thread Jonathan M Davis via Digitalmars-d
On Tuesday, 29 September 2015 at 09:02:13 UTC, John Colvin wrote: On Tuesday, 29 September 2015 at 06:16:18 UTC, Ola Fosheim Grøstad wrote: D2 is pretty much C++ with a Boehm collector attached to it. So to get traction D has to improve on that model significantly OR change direction

Re: GuiDub

2015-09-29 Thread wobbles via Digitalmars-d
On Tuesday, 29 September 2015 at 02:47:32 UTC, Jacob wrote: Idea: A gui app for dub that you run, it downloads the package info from the repository and you can select a project or create a new one and it will automatically add or remove dependencies? I'm having to browse the repository then

Re: std.experimental.testing formal review

2015-09-29 Thread Per Nordlöw via Digitalmars-d
On Wednesday, 9 September 2015 at 15:20:41 UTC, Robert burner Schadek wrote: This post marks the start of the two week review process of std.experimental.testing. Will `runTests` automatically assert that all pure unittests by default are parallellized and all non-pure are serialized? If so

Re: Moving back to .NET

2015-09-29 Thread Ola Fosheim Grøstad via Digitalmars-d
On Tuesday, 29 September 2015 at 09:12:11 UTC, Jonathan M Davis wrote: C++11 and 14 have closed the gap, but the two are still quite distinct. That doesn't necessarily mean that D is better in all cases, but D is definitely not just C++ with a GC. It isn't "just C++", but D as a language is

Re: Threading Questions

2015-09-29 Thread Russel Winder via Digitalmars-d-learn
On Tue, 2015-09-29 at 03:05 +, bitwise via Digitalmars-d-learn wrote: > On Monday, 28 September 2015 at 11:47:38 UTC, Russel Winder wrote: > > I hadn't answered as I do not have answers to the questions you > > ask. My reason: people should not be doing their codes using > > these low-level

Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread Daniel Kozak via Digitalmars-d-announce
Sebastiaan Koppe píše v Út 29. 09. 2015 v 03:53 +: > This library[1] allows you to send multi-part emails with > attachments. > > ``` > Mail email = new Mail; > email.headers["Date"] = Clock.currTime().toRFC822DateTimeString(); > email.headers["Sender"] = "Domain.com Contact Form "; >

Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread Sebastiaan Koppe via Digitalmars-d-announce
On Tuesday, 29 September 2015 at 07:24:48 UTC, Russel Winder wrote: This code looks so similar to the equivalent in Python, it is great. Does it need Vibe underneath it though to work, or is this a package that can sit separately and just use sockets to connect to the SMTP server as with

Re: Do users need to install VS runtime redistributable if linking with Microsoft linker?

2015-09-29 Thread ponce via Digitalmars-d-learn
On Tuesday, 29 September 2015 at 09:44:58 UTC, Sebastiaan Koppe wrote: On Tuesday, 29 September 2015 at 09:15:29 UTC, ponce wrote: On Monday, 28 September 2015 at 16:01:54 UTC, Sebastiaan Koppe wrote: I could not find out which redistributable I had to install (what version of VS did you have

Re: zip packages to pack modules

2015-09-29 Thread wobbles via Digitalmars-d
On Tuesday, 29 September 2015 at 10:22:05 UTC, bachmeier wrote: On Tuesday, 29 September 2015 at 05:24:49 UTC, tcak wrote: Use Case * Include libraries in a project in one step. * Versioning is much easier. Programmer creates a library with many modules in it. ZIP packs them, and

Re: GuiDub

2015-09-29 Thread wobbles via Digitalmars-d
On Tuesday, 29 September 2015 at 07:59:38 UTC, ponce wrote: On Tuesday, 29 September 2015 at 05:17:42 UTC, Jacob wrote: "dsfml": "~master", "std_event": "~master", "derelict_extras-glib": "~master", "netstack":

Re: zip packages to pack modules

2015-09-29 Thread lobo via Digitalmars-d
On Tuesday, 29 September 2015 at 05:24:49 UTC, tcak wrote: [snip] Why not DUB? I have never use DUB ever, and not planning to use it. Nobody else has to use it as well. I don't think anyone should be forced for this. The proposed feature allows to simplify downloading

Re: Why getting private member fails using getMember trait in a template?

2015-09-29 Thread Alexandru Ermicioi via Digitalmars-d-learn
On Saturday, 26 September 2015 at 10:10:39 UTC, Alexandru Ermicioi wrote: Suppose we have, two modules: module testOne; [...] So, is this behavior correct? If yes, then why?

Re: Get template parameter value

2015-09-29 Thread Kagamin via Digitalmars-d-learn
On Tuesday, 29 September 2015 at 09:11:15 UTC, John Colvin wrote: Welcome to the weird and wonderful work of http://dlang.org/expression.html#IsExpression No, use template pattern matching instead: struct A(int s){} template B(T:A!s, int s){ enum B=s; } static assert(B!(A!4)==4);

Re: zip packages to pack modules

2015-09-29 Thread bachmeier via Digitalmars-d
On Tuesday, 29 September 2015 at 10:37:33 UTC, wobbles wrote: How does it increase the learning curve? A proper package management system would work as I described. You include pragma(dub) at the top of your program and you don't have to write your own dub package. dub is a substitute for a

Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 29 September 2015 at 09:05:09 UTC, Sebastiaan Koppe wrote: That why we want stuff besides text in our emails. Attachments do pictures better than html bodies though.

Re: This Week in D #37 - forum tutorials and tip on using UDAs

2015-09-29 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 29 September 2015 at 07:09:35 UTC, Jacob Carlborg wrote: This looks pretty cool. Unfortunately the original code needs to be contained inside a template :( . Yeah. You could put it in a module too (my original plan was to write about "module mything_impl; code here" and "module

Move Semantics

2015-09-29 Thread Alex via Digitalmars-d-learn
Another question on move semantics from the cheap seats... See my code here: http://dpaste.dzfl.pl/995c5af59dd6 There are indeed three questions, all marked in the code, so the rest of the text here is maybe redundant... but just in case and for summary: I try to model a inner class of some

Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread Sebastiaan Koppe via Digitalmars-d-announce
On Tuesday, 29 September 2015 at 13:10:55 UTC, Adam D. Ruppe wrote: I'm slowly working on it. Got some working just yesterday: http://code.dlang.org/packages/arsd-official Good. But why put everything in one package? A guy on npmjs.com goes the other extreme and he actually has a package

Re: zip packages to pack modules

2015-09-29 Thread ponce via Digitalmars-d
On Tuesday, 29 September 2015 at 14:24:03 UTC, tcak wrote: ZIP packages in no way make any change in the language. There is no need for pragmas even. There is no this simple (e.g. dmd main.d library.zip) substitute for it at the moment. You can do it with a dmd frontend, if an argument

Re: Moving back to .NET

2015-09-29 Thread Atila Neves via Digitalmars-d
On Tuesday, 29 September 2015 at 11:53:45 UTC, Ola Fosheim Grøstad wrote: It isn't "just C++", but D as a language is close enough to be considered a close relative. So if you are used to implementing libraries in C++, the jump to D is not a big jump. That's as true as saying that D is

Re: std.experimental.testing formal review

2015-09-29 Thread Atila Neves via Digitalmars-d
On Tuesday, 29 September 2015 at 10:45:23 UTC, Per Nordlöw wrote: On Wednesday, 9 September 2015 at 15:20:41 UTC, Robert burner Schadek wrote: This post marks the start of the two week review process of std.experimental.testing. Will `runTests` automatically assert that all pure unittests by

Re: Indicators and traction…

2015-09-29 Thread ponce via Digitalmars-d
On Wednesday, 23 September 2015 at 15:09:53 UTC, Nick Sabalausky wrote: This is engineering, not fucking fashion. Popularity has no place in decision making here. From everything I've seen, 90% of the problems that exist in computing technology today can be traced back directly to some

Re: Indicators and traction…

2015-09-29 Thread Nick Sabalausky via Digitalmars-d
On 09/29/2015 10:51 AM, ponce wrote: On Wednesday, 23 September 2015 at 15:09:53 UTC, Nick Sabalausky wrote: This is engineering, not fucking fashion. Popularity has no place in decision making here. From everything I've seen, 90% of the problems that exist in computing technology today can be

Re: zip packages to pack modules

2015-09-29 Thread Atila Neves via Digitalmars-d
On Tuesday, 29 September 2015 at 12:04:51 UTC, bachmeier wrote: On Tuesday, 29 September 2015 at 10:37:33 UTC, wobbles wrote: Again, that's the problem. You shouldn't have to write your own dub package in order to use dub You don't. You have to write your own dub package in order for other

Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread Sebastiaan Koppe via Digitalmars-d-announce
On Tuesday, 29 September 2015 at 13:37:18 UTC, Suliman wrote: I am asking because I had troubles with vibed http://forum.rejectedsoftware.com/groups/rejectedsoftware.vibed/thread/25447/ It's still vibe.d doing the smtp stuff. You might want to look into adam's code, or

Re: Pathing in the D ecosystem is generally broken (at least on windows)

2015-09-29 Thread Nick Sabalausky via Digitalmars-d
On 09/28/2015 03:44 PM, Walter Bright wrote: The dialog box itself is not an edit box, and copy simply does not work. (Just tried it again.) You cannot copy ANY text from it, even the highlighted text. This really blows when you've got a message window with an error message in it, and you

Re: Moving back to .NET

2015-09-29 Thread Laeeth Isharc via Digitalmars-d
On Sunday, 27 September 2015 at 09:51:42 UTC, Ola Fosheim Grøstad wrote: On Monday, 28 September 2015 at 09:35:53 UTC, Chris wrote: In response to Ola: On Monday, 28 September 2015 at 09:35:53 UTC, Chris wrote: Yep. What I was talking about was not the fear of a commercial failure because of

Re: zip packages to pack modules

2015-09-29 Thread tcak via Digitalmars-d
On Tuesday, 29 September 2015 at 10:37:33 UTC, wobbles wrote: On Tuesday, 29 September 2015 at 10:22:05 UTC, bachmeier wrote: On Tuesday, 29 September 2015 at 05:24:49 UTC, tcak wrote: Use Case * Include libraries in a project in one step. * Versioning is much easier. Programmer

Re: Indicators and traction…

2015-09-29 Thread Nick Sabalausky via Digitalmars-d
On 09/26/2015 11:34 PM, Manu via Digitalmars-d wrote: On 24 September 2015 at 01:09, Nick Sabalausky via Digitalmars-d This is engineering, not fucking fashion. You're familiar with JS, MongoDB, Ruby on rails, etc, etc? Software engineers are firmly engaged in fashion. Oh, I definitely

Re: Moving back to .NET

2015-09-29 Thread Ola Fosheim Grøstad via Digitalmars-d
On Tuesday, 29 September 2015 at 14:24:45 UTC, Atila Neves wrote: wouldn't be a big jump. You'd end up with code that looks like C++ or Java that no seasoned D developer would write. I don't really see your point. "idiomatic" is a cultural regime, not a language and not necessarily an

Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 29 September 2015 at 14:57:13 UTC, Sebastiaan Koppe wrote: Good. But why put everything in one package? dub forces me to do it that way. It isn't my preference, but reorganizing all my files and creating twenty or thirty different github repos to house them is unacceptable. The

Re: std.data.json formal review

2015-09-29 Thread Laeeth Isharc via Digitalmars-d
On Tuesday, 29 September 2015 at 11:06:03 UTC, Marc Schütz wrote: On Monday, 28 September 2015 at 07:02:35 UTC, Marco Leise wrote: Am Tue, 18 Aug 2015 09:05:32 + schrieb "Marc Schütz" : Or, as above, leave it to the end user and provide a `to(T)` method that can support

Re: Moving back to .NET

2015-09-29 Thread Kagamin via Digitalmars-d
On Friday, 25 September 2015 at 21:46:35 UTC, Laeeth Isharc wrote: I was speaking about the general case, but since you made it a personal reference - if I spent time to step back and admire my handiwork, I wouldn't at this point have time to finish the broader project as its at the limit of

Re: Help from the compiler when debugging failing template constraints - a pull request

2015-09-29 Thread Dmitry Olshansky via Digitalmars-d
On 28-Sep-2015 23:25, Atila Neves wrote: I've mentioned this many times before: template constraints are like unittest blocks with asserts in D: great that they're built-in easy to use. But when they fail, there's no help in figuring out why. [snip] I created an input range, verified it

Re: Help from the compiler when debugging failing template constraints - a pull request

2015-09-29 Thread Steven Schveighoffer via Digitalmars-d
On 9/28/15 4:25 PM, Atila Neves wrote: I've mentioned this many times before: template constraints are like unittest blocks with asserts in D: great that they're built-in easy to use. But when they fail, there's no help in figuring out why. I've had many a debugging session (with pragma(msg) of

Re: Get template parameter value

2015-09-29 Thread Artur Skawina via Digitalmars-d-learn
On 09/29/15 12:13, rumbu via Digitalmars-d-learn wrote: > On Tuesday, 29 September 2015 at 09:53:39 UTC, Kagamin wrote: >> On Tuesday, 29 September 2015 at 09:11:15 UTC, John Colvin wrote: >>> Welcome to the weird and wonderful work of >>> http://dlang.org/expression.html#IsExpression >> >> No,

  1   2   >