Re: Popular embedded language for scripting in D

2016-11-20 Thread Soulsbane via Digitalmars-d-learn
On Saturday, 19 November 2016 at 22:18:39 UTC, Sai wrote: I have seen luad and Walters own JavaScript VM that can be used in D for embedded scripting purpose in an application. I was wondering which is more popular among D applications? Any suggestions? Thanks, sai I've used LuaD in a

Re: Using tango with dub

2016-12-17 Thread Soulsbane via Digitalmars-d-learn
On Saturday, 17 December 2016 at 20:26:53 UTC, albert-j wrote: I thought Tango was obsolete a long time ago. Is there a specific reason you need to use Tango and can't use Phobos? I need a Set implementation and from what I understand there isn't one in Phobos right now? Have you seen

Re: Using filter with std.container.Array.

2017-03-22 Thread Soulsbane via Digitalmars-d-learn
On Wednesday, 22 March 2017 at 07:30:48 UTC, Jonathan M Davis wrote: On Wednesday, March 22, 2017 07:06:47 Soulsbane via Digitalmars-d-learn wrote: Example code: struct Foo { string name; size_t id; } Array!Foo foo_; I get errors when I try to use filter like this: auto found = filter

Re: Using filter with std.container.Array.

2017-03-22 Thread Soulsbane via Digitalmars-d-learn
On Thursday, 23 March 2017 at 03:02:54 UTC, Jonathan M Davis wrote: On Thursday, March 23, 2017 02:53:40 Soulsbane via Digitalmars-d-learn wrote: [...] find just iterates to the first element that matches. It doesn't affect the range beyond that. It works basically the same way that find

Re: Recommend: IDE and GUI library

2017-03-26 Thread Soulsbane via Digitalmars-d-learn
On Wednesday, 1 March 2017 at 20:23:57 UTC, aberba wrote: On Friday, 24 February 2017 at 22:44:55 UTC, XavierAP wrote: [...] Gtkd is obviously defacto for Linux ONLY, dlangui for cross platform app without native feel. But if you want something easy and flexible with native look and feel on

Using filter with std.container.Array.

2017-03-22 Thread Soulsbane via Digitalmars-d-learn
Example code: struct Foo { string name; size_t id; } Array!Foo foo_; I get errors when I try to use filter like this: auto found = filter!((Foo data, size_t id) => data.id == id)(foo_[], 100); I get this error source/app.d(15,62): Error: template

Re: html fetcher/parser

2017-08-12 Thread Soulsbane via Digitalmars-d-learn
On Saturday, 12 August 2017 at 19:53:22 UTC, Faux Amis wrote: I would like to get into D again by making a small program which fetches a website every X-time and keeps track of all changes within specified dom elements. fetching: should I go for std curl, vibe.d or something else? parsing: I

Re: DDox and filters.

2017-07-27 Thread Soulsbane via Digitalmars-d-learn
On Thursday, 27 July 2017 at 03:01:50 UTC, Danni Coy wrote: I am trying to build my projects documentation via the ddox system via dub. It seems that my modules are being documented and then filtered out. Ironically for a documentation system there isn't a lot of documentation. What is the

Is it bad form to put code in package.d other than imports?

2018-01-02 Thread Soulsbane via Digitalmars-d-learn
I've only understood that imports should go in package.d. I'm seeing more and more packages on code.dlang.org using it for the packages primary code. Is this alright? As far as I can tell it's just bad form. It would be nice to have one of the maintainers higher up the food chain comment on

Re: Is it bad form to put code in package.d other than imports?

2018-01-03 Thread Soulsbane via Digitalmars-d-learn
On Wednesday, 3 January 2018 at 07:43:52 UTC, Jonathan M Davis wrote: On Wednesday, January 03, 2018 06:10:10 Soulsbane via Digitalmars-d-learn wrote: [...] The entire reason that the package.d feature was added was so that it would be possible to split a module into a package without

Re: Where do I learn to use GtkD

2018-10-30 Thread Soulsbane via Digitalmars-d-learn
On Tuesday, 30 October 2018 at 04:22:21 UTC, helxi wrote: On Sunday, 13 March 2016 at 19:28:57 UTC, karabuta wrote: https://gitlab.com/9898287/gtkdnotes Oh Wow! That's really nice. Thanks for putting this together! Much appreciated.

Re: Windows Service

2018-11-14 Thread Soulsbane via Digitalmars-d-learn
On Wednesday, 14 November 2018 at 19:38:08 UTC, Thomas wrote: Hi, I want to run a D program as a Windows service. After googl'in, I only found a very old project on github: https://github.com/tylerjensen/WindowsServiceInD Unfortunately, I wasn't able to compile it successfully. Does anybody

Re: How do I the temlate parameter name as string?

2018-11-26 Thread Soulsbane via Digitalmars-d-learn
On Tuesday, 27 November 2018 at 02:00:44 UTC, PacMan wrote: ParameterIdentifierTuple from std.traits did work fine for regular functions but not for template functions: Error: template instance `std.traits.ParameterIdentifierTuple!(f)` does not match template declaration

Re: Distinguish float and integer types from string

2019-03-11 Thread Soulsbane via Digitalmars-d-learn
On Saturday, 9 March 2019 at 18:11:09 UTC, Jacob Shtokolov wrote: Hi, Recently, I was trying to solve some funny coding challenges (https://www.techgig.com). The questions were really simple, but I found it interesting because the website allows to use D. One of the task was to take a

Are there any DUB packages for displaying an ascii table?

2019-12-08 Thread Soulsbane via Digitalmars-d-learn
Been playing with Golang lately and it has quite a few modules for terminal tables. For example this one: github.com/brettski/go-termtables. Is there a D equivalent package? Can't seem to find any via search(which by the ways seems to give bad results or I just can't find the right word to

Re: Are there any DUB packages for displaying an ascii table?

2019-12-08 Thread Soulsbane via Digitalmars-d-learn
On Sunday, 8 December 2019 at 08:12:49 UTC, mipri wrote: On Sunday, 8 December 2019 at 08:01:32 UTC, Soulsbane wrote: Been playing with Golang lately and it has quite a few modules for terminal tables. For example this one: github.com/brettski/go-termtables. Is there a D equivalent package?

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

2019-12-22 Thread Soulsbane 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 this extension: