Re: How to use bootstrap with vibe.d.

2020-11-05 Thread Alaindevos via Digitalmars-d-learn
It know it gives you nice buttons. I suppose to use it you add the bootstrap .js and .css file links to the diet templates.

Re: Vibe.D TLS problem

2020-11-05 Thread Dukc via Digitalmars-d-learn
On Tuesday, 27 October 2020 at 17:36:53 UTC, Dukc wrote: ``` HTTP connection handler has thrown: Accepting SSL tunnel: error:1408F09C:SSL routines:ssl3_get_record:http request (336130204) ``` I figured out from the Vibe.D source code that if I enable the debug level of the console logger, I

Switch between two structs with csvreader

2020-11-05 Thread Selim Ozel via Digitalmars-d-learn
Hi There, I am trying to switch between two structs as I am using the csvReader on a raw string. The pseudo-code below throws a "cannot implicitly convert" error due to difference between struct_type1 and struct_type2. I must be doing something wrong or have a wrong understanding of how this

Re: Switch between two structs with csvreader

2020-11-05 Thread Anonymouse via Digitalmars-d-learn
On Thursday, 5 November 2020 at 21:18:52 UTC, Selim Ozel wrote: auto records = rawtext.csvReader!struct_type1(';'); D is statically typed and `auto` means "deduce this type for me based on this one function's return value". It is not like JavaScript's `var` whose type may change. If I'm not

How add class or struct member after construction?

2020-11-05 Thread Marcone via Digitalmars-d-learn
How add class or struct member after construction? Is it possible in D? How?

Re: How add class or struct member after construction?

2020-11-05 Thread H. S. Teoh via Digitalmars-d-learn
On Thu, Nov 05, 2020 at 10:48:38PM +, Marcone via Digitalmars-d-learn wrote: > How add class or struct member after construction? Is it possible in > D? How? You can't, because D is statically-typed. However, you *can* implement something equivalent manually by other means, depending on your

Re: How add class or struct member after construction?

2020-11-05 Thread Simen Kjærås via Digitalmars-d-learn
On Thursday, 5 November 2020 at 22:48:38 UTC, Marcone wrote: How add class or struct member after construction? Is it possible in D? How? This depends a lot on what you mean. The short answer is no - you cannot. However, given some limitations, it is possible. What sort of members do you need

Re: How to use bootstrap with vibe.d.

2020-11-05 Thread James Blachly via Digitalmars-d-learn
On Thursday, 5 November 2020 at 16:22:11 UTC, Alaindevos wrote: This is from the bootstrap documentation. I think you must adapt this to .dt files. Correct. It looks like flask_bootstrap is just a convenience that injects the js and css scripts or script URI for you into master flask template

Comparison : mysql-native + asdf and hunt-database + asdf

2020-11-05 Thread Vino via Digitalmars-d-learn
Hi All, We recently tested the below components and the test results are as below, even though hunt-database is faster than mysql-native it is hard to use this package as it lacks on documentation, non of the example provided in the documentation works, one has to go through the code and fi

Vibe.d build on LDC error

2020-11-05 Thread Vino via Digitalmars-d-learn
Hi All, When we try to build vide.d using ldc (dub build) we are getting the below error, openssl is already been installed (OpenSSL 1.0.2j-fips 26 Sep 2016), hence request your help on the same. openssl.d:84: error: undefined reference to 'OPENSSL_init_ssl' openssl.d:121: error: undefine

why `top` report is not consistent with the memory freed by core.stdc.stdlib : free?

2020-11-05 Thread mw via Digitalmars-d-learn
Hi, I'm trying this: https://wiki.dlang.org/Memory_Management#Explicit_Class_Instance_Allocation using core.stdc.stdlib : malloc and free to manually manage memory, I tested two scenarios: -- malloc & free -- malloc only and I use Linux command `top` to check the memory used by the program