Re: vibe.d: is it possible to use bare HTML with the functionalty of DIET templates ?

2021-08-31 Thread someone via Digitalmars-d-learn
On Tuesday, 31 August 2021 at 07:40:10 UTC, bauss wrote: You might be interested in https://yuraiweb.org/ Even though it's a work in progress then you should be able to get by just fine with the basics for now. Thanks for the tip bauss :) ! I am exploring it right now. Main problem is the l

Re: vibe.d: is it possible to use bare HTML with the functionalty of DIET templates ?

2021-08-31 Thread someone via Digitalmars-d-learn
On Tuesday, 31 August 2021 at 14:06:32 UTC, Steven Schveighoffer wrote: The generation of code to output the page depends on the diet file format (i.e. code islands are designated by the leading `-`). However, vibe-d does not require using the diet template system. Does that means I can s

Re: Error load: QtE5Widgets64.dll

2021-08-31 Thread frame via Digitalmars-d-learn
On Tuesday, 31 August 2021 at 17:55:33 UTC, Kagamin wrote: Maybe you're trying to load a 32-bit library into a 64-bit process. Hmm, it's precompiled and the 64bit version should be a wrapper but I guess that it just doesn't work yet or needs a 64bit runtime as well. No idea where to get the r

Re: Labelled @nogc Working With Inner Scopes

2021-08-31 Thread Benoît Dubreuil via Digitalmars-d-learn
On Monday, 30 August 2021 at 20:58:01 UTC, Ali Çehreli wrote: I don't have a strong opinion on the question but I tend to agree with the current behavior because it's easy to add the attributes anyway. On Tuesday, 31 August 2021 at 00:36:46 UTC, Mike Parker wrote: Attributes used to propagate

Re: Error load: QtE5Widgets64.dll

2021-08-31 Thread Kagamin via Digitalmars-d-learn
Maybe you're trying to load a 32-bit library into a 64-bit process.

Re: Module import incompatibility

2021-08-31 Thread Steven Schveighoffer via Digitalmars-d-learn
On 8/31/21 11:17 AM, Paul Backus wrote: On Tuesday, 31 August 2021 at 14:09:01 UTC, Steven Schveighoffer wrote: Are you sure this is the problem? `PdfSurface` is not a valid identifier here except for the class. In order to access the package, you need to use `cairo.PdfSurface`. Must've cha

Re: Module import incompatibility

2021-08-31 Thread frame via Digitalmars-d-learn
On Tuesday, 31 August 2021 at 14:09:01 UTC, Steven Schveighoffer wrote: Are you sure this is the problem? `PdfSurface` is not a valid identifier here except for the class. In order to access the package, you need to use `cairo.PdfSurface`. Tango was full of stuff like this, and it worked f

Re: Module import incompatibility

2021-08-31 Thread frame via Digitalmars-d-learn
On Tuesday, 31 August 2021 at 13:03:54 UTC, Paul Backus wrote: On Tuesday, 31 August 2021 at 12:57:33 UTC, frame wrote: No, it has one, eg: ```d module cairo.PdfSurface; ``` but the filename is PdfSurface.d and class name also :\ You can use a selective import: ```d import cairo.PdfSurface

Re: Module import incompatibility

2021-08-31 Thread Paul Backus via Digitalmars-d-learn
On Tuesday, 31 August 2021 at 14:09:01 UTC, Steven Schveighoffer wrote: Are you sure this is the problem? `PdfSurface` is not a valid identifier here except for the class. In order to access the package, you need to use `cairo.PdfSurface`. Must've changed since you last checked: ```d // mai

Re: vibe.d: is it possible to use bare HTML with the functionalty of DIET templates ?

2021-08-31 Thread Steven Schveighoffer via Digitalmars-d-learn
On 8/30/21 8:09 PM, someone wrote: Regarding vibe.d I think I'll give it a try (maybe placing it behind nginx at first) since I do really got a good first-impression ... kudos to the developers/maintainers :) I like the idea of having D at my disposal within a web page, actually, it is a terr

Re: Module import incompatibility

2021-08-31 Thread Steven Schveighoffer via Digitalmars-d-learn
On 8/31/21 8:57 AM, frame wrote: On Tuesday, 31 August 2021 at 12:37:51 UTC, bauss wrote: On Tuesday, 31 August 2021 at 12:26:28 UTC, frame wrote: I'm sure it was asked before but can't find the thread: How to deal best with an older library that uses the same class name as module name? I ge

Re: Module import incompatibility

2021-08-31 Thread Paul Backus via Digitalmars-d-learn
On Tuesday, 31 August 2021 at 12:57:33 UTC, frame wrote: No, it has one, eg: ```d module cairo.PdfSurface; ``` but the filename is PdfSurface.d and class name also :\ You can use a selective import: ```d import cairo.PdfSurface: PdfSurface; ```

Re: Module import incompatibility

2021-08-31 Thread frame via Digitalmars-d-learn
On Tuesday, 31 August 2021 at 12:37:51 UTC, bauss wrote: On Tuesday, 31 August 2021 at 12:26:28 UTC, frame wrote: I'm sure it was asked before but can't find the thread: How to deal best with an older library that uses the same class name as module name? I get a lot of `Error: module ABC fro

Re: Module import incompatibility

2021-08-31 Thread bauss via Digitalmars-d-learn
On Tuesday, 31 August 2021 at 12:26:28 UTC, frame wrote: I'm sure it was asked before but can't find the thread: How to deal best with an older library that uses the same class name as module name? I get a lot of `Error: module ABC from file ...ABC.d must be imported with 'import ABC'` Do

Module import incompatibility

2021-08-31 Thread frame via Digitalmars-d-learn
I'm sure it was asked before but can't find the thread: How to deal best with an older library that uses the same class name as module name? I get a lot of `Error: module ABC from file ...ABC.d must be imported with 'import ABC'` Do I need to rename all modules?

Re: Object.dup?

2021-08-31 Thread Per Nordlöw via Digitalmars-d-learn
On Monday, 30 August 2021 at 20:32:28 UTC, Adam D Ruppe wrote: You can define one yourself of course with overrides in child classes to update those kinds of things. But doing it automatically is tricky. Yes, thanks. I was interested in the possibility of a single non-member function, though.

Re: vibe.d: is it possible to use bare HTML with the functionalty of DIET templates ?

2021-08-31 Thread bauss via Digitalmars-d-learn
On Tuesday, 31 August 2021 at 00:09:14 UTC, someone wrote: Regarding vibe.d I think I'll give it a try (maybe placing it behind nginx at first) since I do really got a good first-impression ... kudos to the developers/maintainers :) I like the idea of having D at my disposal within a web page,

Re: Question on Immutability

2021-08-31 Thread Mike Parker via Digitalmars-d-learn
On Tuesday, 31 August 2021 at 06:15:07 UTC, jfondren wrote: On Tuesday, 31 August 2021 at 05:42:22 UTC, ag0aep6g wrote: On 31.08.21 02:50, Mike Parker wrote: Member functions marked as immutable can be called on both mutable and immutable instances. That's not true. Demonstrated: Well I'm