First off a Disclaimer: I'm a noob and still learning. Please
don't bash me like some forums.
Now to the questions: I'm searching for a quick and easy way to
integrate SQLite3 in my application. I came across the
etc.c.sqlite3 and the DSQLite
library(https://github.com/bioinfornatics/DSQLite).
On Wednesday, 7 May 2014 at 08:52:04 UTC, Robert Schadek via
Digitalmars-d-learn wrote:
On 05/07/2014 08:21 AM, Jack via Digitalmars-d-learn wrote:
First off a Disclaimer: I'm a noob and still learning. Please
don't bash me like some forums.
Now to the questions: I'm searching for a quick
On Wednesday, 7 May 2014 at 19:03:34 UTC, Arjan wrote:
On Wednesday, 7 May 2014 at 06:21:10 UTC, Jack wrote:
First off a Disclaimer: I'm a noob and still learning. Please
don't bash me like some forums.
Now to the questions: I'm searching for a quick and easy way to
integrate SQLite3 in my
On Wednesday, 7 May 2014 at 19:03:34 UTC, Arjan wrote:
On Wednesday, 7 May 2014 at 06:21:10 UTC, Jack wrote:
First off a Disclaimer: I'm a noob and still learning. Please
don't bash me like some forums.
Now to the questions: I'm searching for a quick and easy way to
integrate SQLite3 in my
On Thursday, 8 May 2014 at 11:07:06 UTC, Arjan wrote:
On Thursday, 8 May 2014 at 10:29:16 UTC, Jack wrote:
On Wednesday, 7 May 2014 at 19:03:34 UTC, Arjan wrote:
On Wednesday, 7 May 2014 at 06:21:10 UTC, Jack wrote:
First off a Disclaimer: I'm a noob and still learning. Please
don't bash me
On Thursday, 8 May 2014 at 12:47:55 UTC, Arjan wrote:
On Thursday, 8 May 2014 at 11:48:14 UTC, Jack wrote:
On Thursday, 8 May 2014 at 11:07:06 UTC, Arjan wrote:
On Thursday, 8 May 2014 at 10:29:16 UTC, Jack wrote:
On Wednesday, 7 May 2014 at 19:03:34 UTC, Arjan wrote:
On Wednesday, 7 May
I had a compiler error with just a DOSNEWSIZE Error with no
more information.
Code: http://pastebin.com/UDAgmjtx
I was trying to learn to implement SQLite connections to a local
file with only the path to the file and no port or localhost
nonesense from this :
On Thursday, 8 May 2014 at 21:10:34 UTC, Arjan wrote:
On Thursday, 8 May 2014 at 14:49:09 UTC, Jack wrote:
I had a compiler error with just a DOSNEWSIZE Error with no
more information.
Code: http://pastebin.com/UDAgmjtx
I was trying to learn to implement SQLite connections to a
local file
On Friday, 9 May 2014 at 01:02:39 UTC, FrankLike wrote:
Hi,everyone,
down VisulaD from
http://rainers.github.io/visuald/visuald/StartPage.html
found the virus:Win32.Troj.Undef.(kcloud)
Why?
Frank
Most probably a false positive. What antivir do you use?
First off a rant:
I use the Code::Blocks IDE and at times it has been proven to a
double-edged source because of various issueslike this one:
http://forum.dlang.org/thread/ndeyzrifseipuebvy...@forum.dlang.org)
and am now itching to search for other IDEs to suit my needs.
Now on to the
On Saturday, 10 May 2014 at 13:02:39 UTC, Jack wrote:
First off a rant:
I use the Code::Blocks IDE and at times it has been proven to a
double-edged source because of various issueslike this one:
http://forum.dlang.org/thread/ndeyzrifseipuebvy...@forum.dlang.org)
and am now itching to
On Sunday, 11 May 2014 at 05:34:38 UTC, Moses wrote:
Thanks, I also found that I need to include the flag
-I/usr/include/dmd/phobos to get it to compile. I tried doing:
export PATH=$PATH:/usr/include/dmd/phobos
but apparently I still need the -I flag. Is there another way
to get around
On Sunday, 11 May 2014 at 16:17:20 UTC, Nick Sabalausky wrote:
Sorry, I haven't really used the curl stuff yet, so I can't be
a bigger help, but a couple notes below:
It's alright. I'm actually up for any information right now.
Access Violation, despite its wording, isn't usually about
I recently downloaded Xamarin Studio from the Mono-Develop
site(as this was the only available installer on that site) and
was looking to try out Mono-D.
Then this showed up: http://puu.sh/8NV4V.png
Was wondering where I can get those dependencies, or how to solve
this particular problem...
On Friday, 16 May 2014 at 01:11:52 UTC, Kapps wrote:
On Friday, 16 May 2014 at 01:07:28 UTC, Kapps wrote:
On Friday, 16 May 2014 at 00:23:00 UTC, Jack wrote:
I recently downloaded Xamarin Studio from the Mono-Develop
site(as this was the only available installer on that site)
and was looking
On Friday, 16 May 2014 at 07:37:33 UTC, Mengu wrote:
hi Jack
curl has an option called SSL_VERIFYPEER which is supported by
etc.c.curl: CurlOption.
you can simply do the following:
import std.stdio;
import etc.c.curl : CurlOption;
import std.net.curl;
void main()
{
auto conn = HTTP();
Code: http://pastebin.com/pQjH3jRs
Error code is this:
Error 42: Symbol Undefined
_D3std7windows8syserror14sysErrorStringFNekZAya
--- errorlevel 1
I'm currently using Xamarin Studio and the compiler spewed this
error out.
I searched around and it said that it had to do with my phobos
On Monday, 19 May 2014 at 15:15:37 UTC, Mike Parker wrote:
Do you have multiple versions of DMD installed? Did you
recently replace an older version with a newer one?
I think this is the main issue. I'll try to reinstall dmd2 again.
On Tuesday, 20 May 2014 at 00:43:03 UTC, Jack wrote:
On Monday, 19 May 2014 at 15:15:37 UTC, Mike Parker wrote:
Do you have multiple versions of DMD installed? Did you
recently replace an older version with a newer one?
I think this is the main issue. I'll try to reinstall dmd2
again.
The
Erm excuse me. Does the current DerelictAL come with alut
bindings? If not, does it come with libaudio then?
I saw this very old page on the internet about DerelictAL having
some alut bindings:
http://svn.dsource.org/projects/derelict/trunk/docs/al.html
But I can't find any alut functions.
On Friday, 23 May 2014 at 08:36:29 UTC, Rene Zwanenburg wrote:
On Friday, 23 May 2014 at 08:17:28 UTC, Jack wrote:
Erm excuse me. Does the current DerelictAL come with alut
bindings? If not, does it come with libaudio then?
I saw this very old page on the internet about DerelictAL
having
On Friday, 23 May 2014 at 09:11:45 UTC, Rene Zwanenburg wrote:
On Friday, 23 May 2014 at 09:01:24 UTC, Jack wrote:
On Friday, 23 May 2014 at 08:36:29 UTC, Rene Zwanenburg wrote:
On Friday, 23 May 2014 at 08:17:28 UTC, Jack wrote:
Erm excuse me. Does the current DerelictAL come with alut
Disclaimer: I'm a newbie so don't bite me.
Anyway I've been testing out dub in an ArchLinux environment that
is inside a VM software(namely VirtualBox) and tried to build the
Dash-sample game.
The whole process went smoothly until it ended with the Line:
Error executing command run: DMD
On Friday, 19 September 2014 at 16:06:23 UTC, evilrat wrote:
On Friday, 19 September 2014 at 15:58:37 UTC, Jack wrote:
Disclaimer: I'm a newbie so don't bite me.
Anyway I've been testing out dub in an ArchLinux environment
that is inside a VM software(namely VirtualBox) and tried to
build
On Friday, 19 September 2014 at 16:45:28 UTC, evilrat wrote:
On Friday, 19 September 2014 at 16:35:39 UTC, Jack wrote:
On Friday, 19 September 2014 at 16:06:23 UTC, evilrat wrote:
On Friday, 19 September 2014 at 15:58:37 UTC, Jack wrote:
Disclaimer: I'm a newbie so don't bite me.
Anyway I've
I've configured dub to build DerelictAlure for my project which
only contains the example code shown in:
https://github.com/DerelictOrg/DerelictALURE
The build was successful though when I tried to run it, they were
spewing out that they need some sort of .so files. Full error is
:
On Saturday, 20 September 2014 at 07:32:17 UTC, Mike Parker wrote:
I'm no ALURE expert, but from what I'm reading it appears that
libdumb and libfluidsynth are both used by ALURE and are loaded
by the library runtime (in the same way that Derelict loads
libalure at runtime). So you need to
Disclaimer: Don't eat me.
I was just wondering to those who are experienced in using yajl-d
to show me the proper implementation of using it with arrays.
So far this is what I understand from parsing Json Objects:
class random{
private string foo;
private string bar;
}
void main(string []
On Sunday, 12 October 2014 at 04:17:42 UTC, Jack wrote:
Disclaimer: Don't eat me.
I was just wondering to those who are experienced in using
yajl-d to show me the proper implementation of using it with
arrays.
So far this is what I understand from parsing Json Objects:
class random{
Well, to start, I'm trying to create a mp3 player for
educational purposes.
I'm using DerelictSDL(SDL_MIXER) as a library for the backend and
TKD for the GUI.
I have two objects to represent the two. The constructor for the
sdl one contains the syntax for loading the DerelictSDL
On Sunday, 2 November 2014 at 17:39:46 UTC, Gary Willoughby wrote:
On Sunday, 2 November 2014 at 12:11:23 UTC, Jack wrote:
Whole error is: http://codepad.org/C2l4rUel
That's not the true error. That's dub throwing an exception
when trying to run the built executable. As shown here:
On Monday, 3 November 2014 at 06:51:11 UTC, Dirk wrote:
On Monday, 3 November 2014 at 04:31:40 UTC, Dirk wrote:
On Monday, 3 November 2014 at 03:41:19 UTC, Dirk wrote:
I am wondering if there is any libraries I have missed for
API hooking? Preferably on windows, and linux, although just
On Monday, 3 November 2014 at 14:32:07 UTC, Gary Willoughby wrote:
On Sunday, 2 November 2014 at 23:05:05 UTC, Jack wrote:
On Sunday, 2 November 2014 at 17:39:46 UTC, Gary Willoughby
wrote:
On Sunday, 2 November 2014 at 12:11:23 UTC, Jack wrote:
Whole error is: http://codepad.org/C2l4rUel
On Tuesday, 4 November 2014 at 08:30:34 UTC, Gary Willoughby
wrote:
On Monday, 3 November 2014 at 22:26:14 UTC, Jack wrote:
I'll try and think about this for a while
Thanks for the help sir.
No worries. I don't really know what else to suggest without
seeing a little code. Do you have a
On Monday, 24 November 2014 at 21:19:40 UTC, torea wrote:
Hi all,
I'm playing a bit with D and SDL using DerelictOrg on debian 6.
I've installed SDL2, SDL_mixer2 and the latest packages
DerelictUtil and DerelictSDL2.
I can display some stuffs and interact with the keys.
Now I'm trying to add
On Monday, 8 December 2014 at 12:53:11 UTC, Paul wrote:
Sorry this is a bit off topic but as there doesn't seem to be
an active forum for Derelict atm
This simple test code is giving me an error 'Error executing
command run: Program exited with code -11' (or a seg fault if
executed from
On Tuesday, 9 December 2014 at 10:19:38 UTC, Paul wrote:
On Monday, 8 December 2014 at 21:01:40 UTC, Paul wrote:
On Monday, 8 December 2014 at 17:48:55 UTC, Jack wrote:
I'm running ArchLinux 64-bit on Vbox and tested out the code.
There haven't been any problems. Have you tried updating
On Thursday, 18 December 2014 at 06:29:34 UTC, Joel wrote:
I've installed SDL2.
Joels-MacBook-Pro:DerelictTest joelcnz$ cat test.d
import derelict.sdl2.sdl;
int main() {
DerelictSDL2.load();
}
Joels-MacBook-Pro:DerelictTest joelcnz$ dmd test
libDerelictSDL2.a libDerelictUtil.a
On Thursday, 18 December 2014 at 07:10:43 UTC, Joel wrote:
Did you check if you installed SDL already on your machine?
I followed the SDL2 instructions (on the SDL web site) for OS X
before using Derelict. It had about copying to a curtain
folder, which I did.
Just noticed that you used
Complete error code here: http://codepad.org/KcW7jhXl
Apparently, there exists an incompatibility.
Take note, I just listed tkd as a dependency on my dub.json, and
I haven't really used the library as of the time of its building.
So, is this a bug?
On Friday, 26 December 2014 at 07:23:34 UTC, Rikki Cattermole
wrote:
On 26/12/2014 6:58 p.m., Jack wrote:
Complete error code here: http://codepad.org/KcW7jhXl
Apparently, there exists an incompatibility.
Take note, I just listed tkd as a dependency on my dub.json,
and I
haven't really used
I'm trying to create a sort of downloader where it will
download multiple pages of comics which are in .jpg format.
Now the problem is, that when I used the download() function:
download(url, location);
Where:
url = direct link to the image
location = /downloads/ ~ to!string(x) ~ .jpg; (x is
On Sunday, 28 December 2014 at 06:26:18 UTC, ketmar via
Digitalmars-d-learn wrote:
On Sun, 28 Dec 2014 06:14:09 +
Jack via Digitalmars-d-learn
digitalmars-d-learn@puremagic.com wrote:
I'm trying to create a sort of downloader where it will
download multiple pages of comics which
On Sunday, 28 December 2014 at 06:59:02 UTC, ketmar via
Digitalmars-d-learn wrote:
On Sun, 28 Dec 2014 06:51:14 +
Jack via Digitalmars-d-learn
digitalmars-d-learn@puremagic.com wrote:
As much as my brotherhood senses push me into revealing the
links(they're in json), doing
On Sunday, 28 December 2014 at 07:33:23 UTC, ketmar via
Digitalmars-d-learn wrote:
On Sun, 28 Dec 2014 07:24:53 +
Jack via Digitalmars-d-learn
digitalmars-d-learn@puremagic.com wrote:
Well it's not really that much of a link really. I swear.
It's just like fapping to drawings or some
On Sunday, 28 December 2014 at 07:52:24 UTC, ketmar via
Digitalmars-d-learn wrote:
On Sun, 28 Dec 2014 07:44:33 +
Jack via Digitalmars-d-learn
digitalmars-d-learn@puremagic.com wrote:
How does one compile for Windows on a Linux Machine using dub?
I've been using the platform : [windows
I've encountered this problem back when I was still programming
on Windows and I have encountered this again as I guide my friend
into compiling a Windows-usable version of my software:
http://picpaste.com/pics/10884707_1128873367127279_796341276_n-AEeMhXiv.1419779219.jpg
The program has no
On Tuesday, 25 August 2015 at 13:22:43 UTC, Namespace wrote:
Edit:
Basically my code is:
//Texman.d//
Class TextureManager
{
//variables
void addSprite(string sprite_file, string name)
{
Surface wiki_img
On Tuesday, 25 August 2015 at 12:50:50 UTC, Jack wrote:
So I've been using Dgame to learn about game development and
I'm having an error when I'm trying to set a sprite's position
initialized and stored in another class.
Basically my code is:
//Texman.d//
So I've been using Dgame to learn about game development and I'm
having an error when I'm trying to set a sprite's position
initialized and stored in another class.
Basically my code is:
//Texman.d//
Class Texman
{
//variables
void
Hello, so I've been experimenting with the framework and I tried
to implement a game that has more than two windows.
The first window is the main game and the second window is a
smaller one with the various commands you can select.
So I tried to render sprites onto the first window and the
On Saturday, 2 January 2016 at 17:15:53 UTC, tsbockman wrote:
On Saturday, 2 January 2016 at 16:48:41 UTC, Jack wrote:
[...]
Also, your sample reads from an external file, "read.txt".
Either give us the contents of that file, or change the sample
so that it is not required.
Woops, sorry
On Saturday, 2 January 2016 at 17:56:12 UTC, tsbockman wrote:
On Saturday, 2 January 2016 at 17:39:42 UTC, Jack wrote:
[...]
By far the most likely explanation for an exception at that
location, would be if `custom_keyword` really didn't contain a
valid key into the `custom` associative
So yeah I've been trying to experiment with the language when I'm
met with an Access Violation error.
So I've extracted a string from a file and used it as an index
for a dynamic array. Stripped code sample is :
/
void foo()
{
string[string] custom;
string
On Saturday, 2 January 2016 at 18:14:24 UTC, tsbockman wrote:
On Saturday, 2 January 2016 at 17:39:42 UTC, Jack wrote:
So I'll just send the whole file if you don't mind:
http://dpaste.com/11V5BYA (Line 174-183)
The contents of the .txt file is :
http://dpaste.com/3FVW5QR
I didn't put a lot
So I have separated my texture rendering methods in another file
and have run into a problem hence the title name.
#main.d
--
void render()
{
SDL_RenderClear(renderTarget);
renderSprite(renderTarget);
SDL_RenderPresent(renderTarget);
}
--
#other_file.d
---
void
On Thursday, 24 December 2015 at 10:42:57 UTC, Lucien wrote:
On Thursday, 24 December 2015 at 09:41:39 UTC, Jack wrote:
[...]
You need a pointer to renderTarget.
#other_file.d
-
module my.sdl.project;
import derelict.sdl2.sdl;
import derelict.sdl2.image;
void
On Thursday, 24 December 2015 at 12:42:11 UTC, Lucien wrote:
On Thursday, 24 December 2015 at 11:32:24 UTC, Jack wrote:
On Thursday, 24 December 2015 at 10:42:57 UTC, Lucien wrote:
[...]
I actually have a pointer in the original project but I seem
to forgot it when I'm typing this example.
Greetings!
I've been using Dgame for quite a while now and I have been
learning quite a lot from using playing with it. Then I found
Tiled that's a tool to draw tilemaps, and DTiled to implement it.
Link [ http://code.dlang.org/packages/dtiled]
I've spent about an hour in order to make it
On Friday, 27 November 2015 at 19:22:50 UTC, Namespace wrote:
On Friday, 27 November 2015 at 13:00:16 UTC, Jack wrote:
Greetings!
I've been using Dgame for quite a while now and I have been
learning quite a lot from using playing with it. Then I found
Tiled that's a tool to draw tilemaps,
Greetings.
I've been using VS2010 with VisualD for my project and have
encountered an unusual problem with it.
So every once in a while, when I try to fix bugs in whatever it
is I'm doing, VS2010 would freeze at "Build Started" and will go
unresponsive for a couple of minutes and crash soon
On Saturday, 28 November 2015 at 13:03:23 UTC, Jack wrote:
Greetings.
I've been using VS2010 with VisualD for my project and have
encountered an unusual problem with it.
So every once in a while, when I try to fix bugs in whatever it
is I'm doing, VS2010 would freeze at "Build Started" and
On Saturday, 28 November 2015 at 11:03:37 UTC, Namespace wrote:
Well to start, I just copied the code for loading the map and
tried to build it, substituting the variables like Rect and
others.
Then it went crazy all of a sudden:
http://dpaste.com/2D59A2B
The whole thing went mad, and I was
On Sunday, 10 January 2016 at 14:32:02 UTC, Jack wrote:
Hello. So I was trying to pass a delegate as an argument in a
function and was wondering if I'm writing the correct code for
it.
You see my code is :
//
class Foo()
{
void bar()
{
Hello. So I was trying to pass a delegate as an argument in a
function and was wondering if I'm writing the correct code for it.
You see my code is :
//
class Foo()
{
void bar()
{
writeln("Hello World");
}
}
class Bar()
{
void delegate() action;
On Sunday, 24 July 2016 at 15:38:13 UTC, lqjglkqjsg wrote:
On Sunday, 24 July 2016 at 15:07:20 UTC, Jack wrote:
[...]
- You can use a 3rd module that imports the two that "cycle".
- You can use another singleton implementation that doesn't
rely on a static this. e.g a kind of "lazy factory"
Is there a way for singletons that import each other, use each
other's functions?
Like i.e:
--
module sing1;
import sing2;
final class Singleton_1{
static this{
instance = new Singleton_1();
}
static Singleton_1 getInstance(){
return instance;
}
void foo(){
writeln("Sample");
}
void
So basically I get the error "function button(lua_State* L) is
not callable using argument types ()" whenever I try to
lua_register a function.
```
lua_register(L,"button",button);
```
but whenever I use the function pointer I get the error
"lua_register is not callable using argument types
On Tuesday, 2 August 2016 at 16:44:39 UTC, Mike Parker wrote:
On Tuesday, 2 August 2016 at 14:23:55 UTC, Jack wrote:
[...]
lua_register takes function pointers that in the form of
lua_CFunction, an alias you can find declared in
derelict.lua.types [1]. As you'll see there, it is declared to
What was the reasoning behind this decision?
What's the difference between:
import core.stdc.stdlib : malloc;
auto x = malloc(s)[0..s];
and
auto x = cast(T)malloc(s);
?
I have been using the last but I saw in some code examples, like
this[1] the first being used. What's the difference? in the first
one bounds checking is performed,
On Tuesday, 13 October 2020 at 08:03:26 UTC, aberba wrote:
On Friday, 9 October 2020 at 21:07:28 UTC, jack wrote:
[...]
Did you do this?
[...]
Yes, I did exacly that.
On Tuesday, 13 October 2020 at 08:07:17 UTC, aberba wrote:
On Friday, 9 October 2020 at 21:07:28 UTC, jack wrote:
Documentation[1] tells to use
@translationModule!TranslationContext on class, like this:
@translationModule!TranslationContext
class WebInterface {
...
but it return the error:
On Tuesday, 13 October 2020 at 08:08:54 UTC, aberba wrote:
On Friday, 9 October 2020 at 21:07:28 UTC, jack wrote:
Documentation[1] tells to use
@translationModule!TranslationContext on class, like this:
@translationModule!TranslationContext
class WebInterface {
...
but it return the error:
On Thursday, 15 October 2020 at 01:22:54 UTC, Ali Çehreli wrote:
On 10/14/20 1:15 PM, Jack wrote:
>> auto x = malloc(s)[0..s];
>
https://wiki.dlang.org/Memory_Management#Explicit_Class_Instance_Allocation
Note that 'x' is passed to emplace() at that link and emplace()
requires a slice.
On Wednesday, 14 October 2020 at 21:12:13 UTC, Paul Backus wrote:
On Wednesday, 14 October 2020 at 20:15:39 UTC, Jack wrote:
[...]
The difference is that the first version gives you a `void[]`,
and the second version gives you a `T`. Neither version does
any bounds checking.
Generally,
I'm playing with wasm, I wrote a small module where I'd like to
make the function available but wasm can't find this function.
math.d
module math;
extern(C):
int mul(int a, int b) { return a * b;}
wasm.d
public import math;
extern(C): // disable D mangling
void doSomething() { ... } //
I'm compiling with
ldc2 -mtriple=wasm32-unknow-unknow-wasm -betterC wasm.d
can I make it work? the code (see below) result in link error:
lld: error: wasm.o: undefined symbol: _D4wasm1C7__ClassZ
lld: error: wasm.o: undefined symbol: _d_allocclass
Error: linking with LLD failed
command line:
ldc2 --d-debug -mtriple=wasm32-unknown-unknown-wasm -betterC
wasm.d
ldc
On Thursday, 15 October 2020 at 20:13:37 UTC, Atmosfear wrote:
On Thursday, 15 October 2020 at 16:32:06 UTC, Imperatorn wrote:
On Thursday, 15 October 2020 at 12:45:42 UTC, Atmosfear wrote:
I didn't find how to call the queryperformancecounter
function. I tried this. Returns errors, doesn't
On Friday, 16 October 2020 at 02:43:19 UTC, Paul Backus wrote:
On Thursday, 15 October 2020 at 22:02:11 UTC, Jack wrote:
can I make it work? the code (see below) result in link error:
lld: error: wasm.o: undefined symbol: _D4wasm1C7__ClassZ
lld: error: wasm.o: undefined symbol: _d_allocclass
Documentation[1] tells to use
@translationModule!TranslationContext on class, like this:
@translationModule!TranslationContext
class WebInterface {
...
but it return the error:
Error: template instance translationModule!(TranslationContext)
does not match template declaration
On Wednesday, 14 October 2020 at 01:55:13 UTC, Adam D. Ruppe
wrote:
On Wednesday, 14 October 2020 at 01:46:11 UTC, Jack wrote:
extern(C):
int mul(int a, int b) { return a * b;}
mark it `export` as well
and then be sure you are compiling in this module as well, it
must be included on the
Hi,
I am building a webapp using vibe.d which is working well on
macOS and Linux. However, when I run it on windows I get:
Program exited with code -1073741701
I created a new default project with: dub init test -t vibe.d
and get the same error code when running it.
Any suggestions what
On Saturday, 19 September 2020 at 13:13:56 UTC, Jack wrote:
Hi,
I am building a webapp using vibe.d which is working well on
macOS and Linux. However, when I run it on windows I get:
Program exited with code -1073741701
I created a new default project with: dub init test -t vibe.d
and get
On Tuesday, 27 October 2020 at 15:16:33 UTC, Marcone wrote:
Becouse my program use plink.exe running with spawnShell or
executeShell.
But when my program finish with some crash, or killed with
windows task manager by user, Plink still running. How can I
stop all process initialized with
On Wednesday, 21 October 2020 at 22:50:27 UTC, matheus wrote:
Hi,
import std.stdio, std.conv;
void main(string[ ] args) {
auto a = (1).to!int; // this works
auto b = ("1").to!int; // this works
auto c = (1.1).to!int; // this works and c = 1
auto d = ("1.1").to!int; //
On Sunday, 25 October 2020 at 12:16:36 UTC, Jacob Carlborg wrote:
On 2020-10-23 18:42, data pulverizer wrote:
For me it's not make-or-break, it just something very useful
and I think has clear use case. Please let me know if there
are aspects or alternatives I am missing.
You could always
On Friday, 23 October 2020 at 16:42:00 UTC, data pulverizer wrote:
Hi all,
the `import` function allows a file to be read at compile time,
which opens up great opportunities for (mostly binary) file IO,
where data types can be coded into files - the user doesn't
need to know data types ahead
On Friday, 16 October 2020 at 03:42:22 UTC, Adam D. Ruppe wrote:
On Friday, 16 October 2020 at 03:04:25 UTC, Jack wrote:
How can I allocate memory for this class?
It is possible but not easy without druntime.
If you are using -betterC, you can use extern(C++) classes with
extern(D) members.
On Tuesday, 27 October 2020 at 22:14:53 UTC, Dukc wrote:
On Tuesday, 27 October 2020 at 15:16:33 UTC, Marcone wrote:
[...]
This is a bit heavyweight, but should be doable: have your
primary process to start a watchdog process for itself. The
watchdog continuosly sends messages to the
let's say a I have this:
void f(X foo) { }
but I'd like to make f() accept immutable X too so instead of
cast away everywhere in the code where immutable(X) is passed to
f() or make a overload for this, are there any way to accept both
in same function? those function are callback-like
On Monday, 11 January 2021 at 18:37:58 UTC, ag0aep6g wrote:
On Monday, 11 January 2021 at 18:12:17 UTC, Jack wrote:
thanks! now, how would I add const here?
import std.container : SList;
auto l = SList!Callabck();
doesn't work:
auto l = SList!(const(Callabck()));
auto l = SList!(const
On Monday, 11 January 2021 at 16:56:05 UTC, ag0aep6g wrote:
On Monday, 11 January 2021 at 16:40:01 UTC, Jack wrote:
let's say a I have this:
void f(X foo) { }
but I'd like to make f() accept immutable X too so instead of
cast away everywhere in the code where immutable(X) is passed
to f()
On Saturday, 21 November 2020 at 19:34:31 UTC, Ferhat Kurtulmuş
wrote:
On Saturday, 21 November 2020 at 17:25:46 UTC, Jack wrote:
I'm trying to get d++ to work on Windows 10/64-bit machine but
it doesn't work. I'm using the very same code samples c.c, c.h
and foo.dpp from here
On Sunday, 6 December 2020 at 04:41:56 UTC, Виталий Фадеев wrote:
On Saturday, 5 December 2020 at 19:51:14 UTC, Jack wrote:
So in D I have a struct like this:
struct ProcessResult
{
string[] output;
bool ok;
}
in order to use output from C WINAPI with unicode, I need to
On Sunday, 6 December 2020 at 05:04:35 UTC, tsbockman wrote:
On Sunday, 6 December 2020 at 02:07:10 UTC, Jack wrote:
On Saturday, 5 December 2020 at 23:31:31 UTC, tsbockman wrote:
On Saturday, 5 December 2020 at 21:55:13 UTC, Jack wrote:
[...]
`ws.length` is the length in `wchar`s, but
On Saturday, 5 December 2020 at 23:31:31 UTC, tsbockman wrote:
On Saturday, 5 December 2020 at 21:55:13 UTC, Jack wrote:
my code now look like this, still there's a memory corrupt.
Could anyone help point out where is it?
...
foreach(i; 0..output.length) {
wstring ws;
So in D I have a struct like this:
struct ProcessResult
{
string[] output;
bool ok;
}
in order to use output from C WINAPI with unicode, I need to
convert each string to wchar* so that i can acess it from C with
wchar_t*. Is that right or am I missing anything?
struct
I totally forget to malloc() the strings and array. I don't do C
has been a while and totally forget this, thank you so much guys
for your answer.
my code now look like this, still there's a memory corrupt. Could
anyone help point out where is it?
struct ProcessResult
{
string[]
1 - 100 of 251 matches
Mail list logo