Re: VibeD - undefinded identifier

2017-07-23 Thread holo via Digitalmars-d-learn
On Sunday, 23 July 2017 at 17:16:44 UTC, Seb wrote: On Sunday, 23 July 2017 at 16:37:19 UTC, holo wrote: On Sunday, 23 July 2017 at 16:27:40 UTC, Mike Parker wrote: On Sunday, 23 July 2017 at 15:23:25 UTC, holo wrote: this(auto tmp) You need to specify a type here instead of using auto.

Re: VibeD - undefinded identifier

2017-07-23 Thread Seb via Digitalmars-d-learn
On Sunday, 23 July 2017 at 16:37:19 UTC, holo wrote: On Sunday, 23 July 2017 at 16:27:40 UTC, Mike Parker wrote: On Sunday, 23 July 2017 at 15:23:25 UTC, holo wrote: this(auto tmp) You need to specify a type here instead of using auto. Thanks for reply i fix it. But right now im

Re: VibeD - undefinded identifier

2017-07-23 Thread holo via Digitalmars-d-learn
On Sunday, 23 July 2017 at 16:27:40 UTC, Mike Parker wrote: On Sunday, 23 July 2017 at 15:23:25 UTC, holo wrote: this(auto tmp) You need to specify a type here instead of using auto. Thanks for reply i fix it. But right now im getting:

Re: VibeD - undefinded identifier

2017-07-23 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 23 July 2017 at 15:23:25 UTC, holo wrote: this(auto tmp) You need to specify a type here instead of using auto.

Re: VibeD - undefinded identifier

2017-07-23 Thread holo via Digitalmars-d-learn
On Sunday, 23 July 2017 at 15:43:31 UTC, Seb wrote: On Sunday, 23 July 2017 at 15:23:25 UTC, holo wrote: Hello Im trying to create REST api for my simple web page. My code is looking like below: module service.frontpage; import vibe.d; @path("/api") interface IFrontPageAPI { Json

Re: Is align(16) respected for globals?

2017-07-23 Thread Johan Engelen via Digitalmars-d-learn
On Sunday, 23 July 2017 at 08:43:33 UTC, Guillaume Piolat wrote: I rely a lot on such constants for SSE: align(16) static immutable short[8] A = [ 1, 1, 1, 1, 3, 3, 3, 3 ]; Does such alignment actually work on all OS, at all times? Word on the street says align() doesn't work with

Re: VibeD - undefinded identifier

2017-07-23 Thread Seb via Digitalmars-d-learn
On Sunday, 23 July 2017 at 15:23:25 UTC, holo wrote: Hello Im trying to create REST api for my simple web page. My code is looking like below: module service.frontpage; import vibe.d; @path("/api") interface IFrontPageAPI { Json getHome(); } class FrontPageAPI : IFrontPageAPI {

VibeD - undefinded identifier

2017-07-23 Thread holo via Digitalmars-d-learn
Hello Im trying to create REST api for my simple web page. My code is looking like below: module service.frontpage; import vibe.d; @path("/api") interface IFrontPageAPI { Json getHome(); } class FrontPageAPI : IFrontPageAPI { this(auto tmp) { auto collect = tmp; } Json

Re: How can I serialize a struct into a file in the style of C?

2017-07-23 Thread Temtaime via Digitalmars-d-learn
Hi ! I have a dub package that doing this. https://github.com/Temtaime/tt-utils/blob/master/source/tt/binary/tests.d Have a look at the tests. Currently it has no documentation, but feel free to ask questions

Re: Profiling Windows App and DLL

2017-07-23 Thread Guillaume Piolat via Digitalmars-d-learn
On Monday, 17 July 2017 at 20:36:58 UTC, Igor wrote: I also tried "Very Sleepy" profiler but it only shows symbols for main application and not for the DLL that it loads which is also built with debug info. Something that works very well is CPU profiling with CodeXL. It used to be an

Re: Profiling Windows App and DLL

2017-07-23 Thread Rainer Schuetze via Digitalmars-d-learn
On 17.07.2017 22:36, Igor wrote: Is there a known limitation in profiling these or am I doing something wrong? When I try to run my application from VisualD (x64 build) with -profile switch I just get Access Violation reported on WinMain function (actual declaration, it doesn't enter its

Is align(16) respected for globals?

2017-07-23 Thread Guillaume Piolat via Digitalmars-d-learn
I rely a lot on such constants for SSE: align(16) static immutable short[8] A = [ 1, 1, 1, 1, 3, 3, 3, 3 ]; Does such alignment actually work on all OS, at all times? Word on the street says align() doesn't work with globals.