Re: Understanding the Use of Nested Import and Selective Import in D

2024-01-17 Thread Orfeo via Digitalmars-d-learn
On Tuesday, 16 January 2024 at 19:05:43 UTC, Jonathan M Davis wrote: When local imports were introduced, they were pushed as best practice (in part, because Andrei is a big fan of them), and I think that for the most part, they still are, but there's definitely going to be some disagreement

Re: Understanding the Use of Nested Import and Selective Import in D

2024-01-16 Thread Orfeo via Digitalmars-d-learn
On Tuesday, 16 January 2024 at 13:19:59 UTC, Orfeo wrote: I found myself a bit perplexed when it comes to the usage of "nested imports" and selective imports. It seems that prominent D programmers have varied opinions on the matter. I would love to hear your insights and e

Understanding the Use of Nested Import and Selective Import in D

2024-01-16 Thread Orfeo via Digitalmars-d-learn
I found myself a bit perplexed when it comes to the usage of "nested imports" and selective imports. It seems that prominent D programmers have varied opinions on the matter. I would love to hear your insights and experiences on this topic. Here's a quick summary of what I've come across from

vibe.d community/forum/whatever ?

2022-06-30 Thread Orfeo via Digitalmars-d-learn
https://forum.dlang.org/post/gbpasireizpjfifmq...@forum.dlang.org On Monday, 30 August 2021 at 12:51:38 UTC, someone wrote: On Monday, 30 August 2021 at 10:37:38 UTC, Steven Schveighoffer wrote: It used to be moderated somewhat, but I think they gave up (99% of the messages were porn or

Re: Release: serverino - please destroy it.

2022-05-11 Thread Orfeo via Digitalmars-d-announce
well done Andrea! (forum begins to be too crowded with Italians :) ) --- Orfeo

Re: Strange function

2019-11-12 Thread Orfeo via Digitalmars-d-learn
On Tuesday, 12 November 2019 at 21:05:35 UTC, Adam D. Ruppe wrote: On Tuesday, 12 November 2019 at 20:45:11 UTC, Orfeo wrote: In druntime (core/bitop.d line 302) I found this function it is a magic function that the compiler recognizes and outputs a cpu instruction instead of a regular call

Re: Which is the active fork in DFL gui library ?

2019-11-12 Thread Orfeo via Digitalmars-d-learn
On Saturday, 2 November 2019 at 20:01:27 UTC, Vinod K Chandran wrote: Hi all, I just found that DFL gui library very interesting. But after some searching, i can see that DFL is inactive and there is few other forks for it. So this is my question - Which fork is good for a gui development in

Strange function

2019-11-12 Thread Orfeo via Digitalmars-d-learn
In druntime (core/bitop.d line 302) I found this function ``` /** * Tests and resets (sets to 0) the bit. */ int btr(size_t* p, size_t bitnum) pure @system; ``` Honestly don't understand: where is the body of the function? I thought I could find something like that: ``` int btr(size_t*

Re: strangely silent compiler

2019-08-21 Thread Orfeo via Digitalmars-d-learn
On Wednesday, 21 August 2019 at 13:56:51 UTC, Eugene Wissner wrote: On Wednesday, 21 August 2019 at 13:41:20 UTC, Orfeo wrote: I've: ``` module anomalo.util; // Foo doesn't exist anywhere! Foo toJsJson(string type, Args...)(string id, Args args) { static if (type == "int&quo

strangely silent compiler

2019-08-21 Thread Orfeo via Digitalmars-d-learn
I've: ``` module anomalo.util; // Foo doesn't exist anywhere! Foo toJsJson(string type, Args...)(string id, Args args) { static if (type == "int" || type == "outcome") { return Json(["id" : Json(id), "type" : Json(type), "value" : Json(0),]); } else { static assert(0,

Re: dip1000 issue

2018-09-07 Thread Orfeo via Digitalmars-d-learn
On Friday, 7 September 2018 at 14:36:18 UTC, rikki cattermole wrote: On 08/09/2018 2:29 AM, Orfeo wrote: ==> And why (maybe a silly question) `-dip1000` breaks  my project so badly without warning.. DIP 1000 is an experimental addition to D, that is yet to be complete. It is a compi

Re: dip1000 issue

2018-09-07 Thread Orfeo via Digitalmars-d-learn
Sorry, I pressed send too quickly On Friday, 7 September 2018 at 14:04:47 UTC, Orfeo wrote: I've a project that link FuzzyCopy [1], that was compiled without problems. So I add FuzzyCopy library [1], I update dmd, then: ==> I've a project that was compiled without problems. So I

dip1000 issue

2018-09-07 Thread Orfeo via Digitalmars-d-learn
I wanted to highlight a problem that drove me crazy. I've a project that link FuzzyCopy [1], that was compiled without problems. So I add FuzzyCopy library [1], I update dmd, then: ``` $ dmd --version DMD64 D Compiler v2.082.0 Copyright (C) 1999-2018 by The D Language Foundation, All Rights

Re: Strange behavior using array of structures

2018-04-04 Thread Orfeo via Digitalmars-d-learn
On Wednesday, 4 April 2018 at 10:09:41 UTC, sarn wrote: On Wednesday, 4 April 2018 at 10:00:18 UTC, Orfeo wrote: foreach (l; log) { l.run; } Try making this "foreach (ref l; log) {". Structs are value types in D, so by default they're copied when you a

Strange behavior using array of structures

2018-04-04 Thread Orfeo via Digitalmars-d-learn
Hi all, I have: ``` import std.stdio; void main() { Logger[] log; Logger l0 = Logger(0,1); Logger l1 = Logger(100,1); Logger l2 = Logger(200,1); log ~= l0; log ~= l1; foreach (i; 0 .. 3) { writeln("it:", i); foreach (l; log) { l.run; } } }

Re: Must I compile on the target architecture?

2015-12-26 Thread Orfeo via Digitalmars-d-learn
On Friday, 25 December 2015 at 12:43:05 UTC, Jakob Jenkov wrote: Hi, just a quick question: If I write a program in D and I use Windows for development but want it to run on Linux, do I have to copy the source code to the target Linux machine and compile it there, to make an executable for

Re: Voting for std.experimental.testing

2015-10-08 Thread Orfeo via Digitalmars-d
On Thursday, 8 October 2015 at 08:21:58 UTC, Robert burner Schadek wrote: Please respond to this post with a comment starting with a single "Yes"/"No" and optional explanation after that. Criteria you are expected to evaluate as part of "Yes": Yes

Re: Setting um makefile for dmd

2015-06-30 Thread Orfeo via Digitalmars-d-learn
something like that can help? ``` run: all $(OUT) ```

Re: Looking for MQTT client library

2015-05-07 Thread Orfeo via Digitalmars-d-learn
On Thursday, 23 April 2015 at 14:40:01 UTC, Frank Pagliughi wrote: I got the OK to submit the D library to Eclipse Paho. So, hopefully within the next few weeks there will be a Paho incubator project for the D language client. Hi Frank, any news about your MQTT client project? Thank you

Re: Filling out the wiki - D as a second language

2015-04-16 Thread Orfeo via Digitalmars-d
On Tuesday, 31 March 2015 at 22:25:29 UTC, rumbu wrote: I started some C# to D stuff here: https://github.com/rumbu13/sharp/blob/master/cstod.md Unfortunately, I cannot edit directly on wiki.dlang.org since my account is not confirmed (confirmation e-mail is not sent despite several

Re: OPTLINK Error 45 Too Much DEBUG Data for Old CodeView format

2015-03-20 Thread Orfeo via Digitalmars-d-learn
You can refer to http://forum.dlang.org/post/jhbgaacoguxaubxgp...@forum.dlang.org Do you use dub? I resolved my problems (on Win) abandoning dub and using makefile. On Friday, 20 March 2015 at 17:35:19 UTC, Koi wrote: Hello, after some coding i needed to update some external libraries like

Re: Looking for MQTT client library

2015-03-12 Thread Orfeo via Digitalmars-d-learn
My preferred option is b. that is convert your MQTT broker to MQTT client. I'm not a MQTT expert, so, in your opinion what parts of your code should I change? (i.e. message module should be the same, peraphs module stream...) Thanks for your support (and also for your unit-threaded

Re: Endovena: a dependency injection framework.

2014-10-22 Thread Orfeo via Digitalmars-d-announce
-8- Container gets confusing with std.container. -8- I agree with you, but 'Container' is widely used in DI context, for example: * SimpleInjector (C#) uses Container * LightInjector uses ServiceContainer * Autofac uses ContainerBuilder * LightCore uses

Endovena: a dependency injection framework.

2014-10-17 Thread Orfeo via Digitalmars-d-announce
Hi all, I'd like to announce the initial version of endovena, a dependency injection framework. It's based on dejector, a great work by Jakub Stasiak, with some new features borrowed from dryioc (C# IoC) I would be glad to see any feedback, Thank you. * [endovena]

[OT]I throw in the towel

2014-06-25 Thread Orfeo via Digitalmars-d-learn
I wanted to create a simple application to display and edit data from postgresql database using GtkD and ddb (https://github.com/pszturmaj/ddb) The application should run on WinXp or Win7. After a week of work I throw in the towel ... 1. The first problem $ dub build Unexpected

Re: Unexpected OPTLINK Termination while building ddb and gtkd

2014-06-24 Thread Orfeo via Digitalmars-d-learn
If I compile with rdmd ``` $ dub build --rdmd ``` it works

Unexpected OPTLINK Termination while building ddb and gtkd

2014-06-23 Thread Orfeo via Digitalmars-d-learn
My dub.json : ``` { name: ddb_test, description: A minimal D application., dependencies: { gtk-d:gtkd: =2.3.3, ddb: =0.2.1 } } ``` My source (source/app.d): ``` import ddb.postgres; import gtk.Window; int main(string[] argv) { return 0; } ``` On linux works, on

Re: DUB linking problem on WinXp

2014-06-20 Thread Orfeo via Digitalmars-d-learn
Well, after many attempts, I have found what is causing the problem. My dub.json : ``` { name: ddb_test, description: A minimal D application., dependencies: { gtk-d:gtkd: =2.3.3, ddb: =0.2.1 } } ``` My source (source/app.d): ``` import ddb.postgres; import

DUB linking problem on WinXp

2014-06-19 Thread Orfeo via Digitalmars-d-learn
I've this dub.json { name: ega_editor, description: Editor for ega database, targetType: executable, targetPath: bin, dependencies: { sdlang-d: =0.8.4, ddb: =0.2.1, dejector: ~master, gtk-d:gtkd: =2.3.3

Re: DUB linking problem on WinXp

2014-06-19 Thread Orfeo via Digitalmars-d-learn
Thank you for your reply... On Thursday, 19 June 2014 at 12:28:31 UTC, Mathias Lang wrote: 8 AFAIK, D is not officially supported on Win XP. 8 The strange thing is that it worked yesterday and not today. I have also tried with Win7 64bit (on

Re: DUB linking problem on WinXp

2014-06-19 Thread Orfeo via Digitalmars-d-learn
The problem was on ddb 0.2.1 ... if I remove it I can compile

Re: D Users Survey: Primary OS?

2014-05-29 Thread Orfeo via Digitalmars-d
Arch Linux x86_64

Interface to Microsoft Access database (Jet)

2014-03-11 Thread Orfeo
I should extract and process data from Microsoft Access database, and mdbtools is not enough. Is there a library that I can use to query Access? Thanks

Re: Interface to Microsoft Access database (Jet)

2014-03-11 Thread Orfeo
On Tuesday, 11 March 2014 at 07:52:33 UTC, dennis luehring wrote: -8--- what is not enough? -8--- Thank you for github link, I had tried only with mdbtools on http://mdbtools.sourceforge.net/... So, it seems that I can connect using libmdb or odbc ... have you any suggestions?

Re: Interface to Microsoft Access database (Jet)

2014-03-11 Thread Orfeo
On Tuesday, 11 March 2014 at 08:22:40 UTC, dennis luehring wrote: -8- what do you need? -8- Well, I should connect to result.mdb database and performs some queries, i.e. select * from result order by id select * from task where result_id=22 ...

Re: Move some guides to the DWiki - yay or nay?

2014-02-23 Thread Orfeo
On Sunday, 23 February 2014 at 12:06:33 UTC, Andrej Mitrovic wrote: E.g. the win32 guide, see here: https://github.com/D-Programming-Language/dlang.org/pull/496 +1

Do you have any suggestions for project directory structure?

2014-02-05 Thread Orfeo
Suppose I have a project protocols that uses DMock and a library Foo. I would like to use a structure dub style..Which solution is better: A. protocols ├── bin │   └── protocols.a ├── dmocks │   └── *.d ├── foo │   └── *.d ├── src │   └── protocols │ └── *.d B. protocols

Re: Is this a bug?

2013-11-27 Thread Orfeo
No crash on ArchLinux 3.12.0-1-ARCH x86_64 GNU/Linux

What does it mean void[]?

2013-11-15 Thread Orfeo
I have found in the module https://github.com/NCrashed/serial-port/blob/master/source/serial/device.d this function: void write(const(void[]) arr) { ... What exactly is void[]? An array of pointers? An array of anything? Thank you

Re: Odd compiler complaints with import declarations

2013-11-12 Thread Orfeo
See also http://d.puremagic.com/issues/show_bug.cgi?id=11451

Re: Odd compiler complaints with import declarations

2013-09-18 Thread Orfeo
Sorry this is correct http://forum.dlang.org/thread/dupcnblrqhesdvwye...@forum.dlang.org

Re: Odd compiler complaints with import declarations

2013-09-18 Thread Orfeo
See also http://forum.dlang.org/thread/dupcnblrqhesdvwyeuaa@forum.dlang.orgOn Friday, 13

Re: [OT] Which IDE / Editor do you use?

2013-09-13 Thread Orfeo
gvim

Odd compiler complaints with import declarations

2013-09-13 Thread Orfeo
I have this directory hierarchy (from TDPL pag 339): . ├── acme │   ├── gadget.d │   └── goodies │   └── io │   ├── io.d │   └── string.d └── main.d // in main.d : import std.stdio; : : import acme.gadget; : void main(string[] args) { :wun(); : } // in gadget.d : import

Re: Odd compiler complaints with import declarations

2013-09-13 Thread Orfeo
On Friday, 13 September 2013 at 20:02:24 UTC, Adam D. Ruppe wrote: On Friday, 13 September 2013 at 19:54:30 UTC, Orfeo wrote: The name must include the relative path computed from the directory That statement isn't really true. The module name is what thef ile has in the contents: module

Re: Odd compiler complaints with import declarations

2013-09-13 Thread Orfeo
On Friday, 13 September 2013 at 19:57:06 UTC, Andrej Mitrovic wrote: Add the module declaration module acme.gadget; at the top of this file and it should work. Thanks Andrej... So, it works also if I add :// main.d :import path.to.nonexistent.location.app; and // gadget.d : module