Re: Need some technical help an object oriented wrapper I am creating for bindbc.sfml

2023-01-26 Thread thebluepandabear via Digitalmars-d-learn
On Thursday, 26 January 2023 at 11:46:07 UTC, matheus wrote: On Tuesday, 24 January 2023 at 03:42:34 UTC, thebluepandabear wrote: ... if not please tell me and I will remove this... How you would do that? Matheus. The forums don't have a delete feature. I am used to most forums having a

Re: How can I install packages in Dlang? (Linux Ubuntu) Como puedo descargar packetes en Dlang?

2023-01-26 Thread Salih Dincer via Digitalmars-d-learn
On Friday, 27 January 2023 at 00:12:02 UTC, Espartan Jhon wrote: HOlas soy nuevo y estoy tratando de instalar packetes pero no me sale porfavor ayuda, nose como instalar paquetes :'( Si puede leer en Ingles, aqui esta la informacion: https://dub.pm/getting_started SDB@79

How can I install packages in Dlang? (Linux Ubuntu) Como puedo descargar packetes en Dlang?

2023-01-26 Thread Espartan Jhon via Digitalmars-d-learn
HOlas soy nuevo y estoy tratando de instalar packetes pero no me sale porfavor ayuda, nose como instalar paquetes :'(

Re: std.logger issue

2023-01-26 Thread Ali Çehreli via Digitalmars-d-learn
On 1/26/23 12:08, Krzysztof Jajeśnica wrote: > On Thursday, 26 January 2023 at 17:17:28 UTC, o3o wrote: >> how can I enable `trace` level? > > Set `sharedLog.logLevel` instead of `globalLogLevel`. Good catch. I had tried the following without success: stdThreadLocalLog.logLevel =

Re: std.logger issue

2023-01-26 Thread Krzysztof Jajeśnica via Digitalmars-d-learn
On Thursday, 26 January 2023 at 17:17:28 UTC, o3o wrote: how can I enable `trace` level? Set `sharedLog.logLevel` instead of `globalLogLevel`. ```d // Note: the cast is needed because sharedLog is shared (cast()sharedLog).logLevel = LogLevel.all; ``` Explanation: logging functions (`trace`,

Re: More Elegant Settable Methods?

2023-01-26 Thread jwatson-CO-edu via Digitalmars-d-learn
On Sunday, 22 January 2023 at 02:28:11 UTC, ryuukk_ wrote: ```D TestStruct ts = { a: 2, b: 3, op: (s) { return s.a + s.b; } }; ``` This simple! just like with C's designated initializers Ah, I had forgotten about this handy initializer form!

std.logger issue

2023-01-26 Thread o3o via Digitalmars-d-learn
``` // rdmd --main -unitest app.d import std.stdio; import std.logger; unittest { globalLogLevel = LogLevel.all; infof("g: %s", globalLogLevel); trace("trace"); // NO output! info("info"); warning("warn"); error("error"); } ``` output is: ``` 2023-01-26T18:16:13.546 [info]

Re: vibe.d community/forum/whatever ?

2023-01-26 Thread o3o via Digitalmars-d-learn
On Monday, 23 January 2023 at 01:51:41 UTC, Rey Valeza wrote: On Monday, 30 August 2021 at 02:39:06 UTC, someone wrote: https://forum.rejectedsoftware.com/groups/rejectedsoftware.vibed/ I've been reading vibe.d tour and some documentation today to get some first impressions.

Re: Need some technical help an object oriented wrapper I am creating for bindbc.sfml

2023-01-26 Thread matheus via Digitalmars-d-learn
On Tuesday, 24 January 2023 at 03:42:34 UTC, thebluepandabear wrote: ... if not please tell me and I will remove this... How you would do that? Matheus.