On Monday, 1 May 2023 at 09:17:14 UTC, Eric P626 wrote:
This is a false dilemma: D has full C compatibility.
From what I understand, D can use C, but C cannot use D? It's
like C++: C++ can call C but C cannot call C++.
50% or more of my code will be put in re-usabled libraries. If
I want pe
On Thursday, 1 June 2023 at 15:05:40 UTC, Marcone wrote:
I linked msvcr120.lib, but the executable still ask for
msvcr120.dll not found.
msvcr120.lib is a "link library", not a static library. On other
systems, you pass shared libraries directly to the linker and it
will pull the informati
On Saturday, 3 June 2023 at 09:04:35 UTC, Dom DiSc wrote:
You can replace your whole makefile by calling the compiler
with -I (not always, but if you don't do funny things in your
makefile).
That would be `-i`.
- This ability of the D compiler was just recently discovered
(after -I was imp
On Monday, 5 June 2023 at 14:16:39 UTC, ryuukk_ wrote:
In my book this is broken and needs to be fixed, as a user i
don't care about under the hood things, it's a you problem,
user should be able to unit test
The docs say it should work:
https://dlang.org/spec/betterc.html#unittests
So eith
On Monday, 5 June 2023 at 14:29:35 UTC, Richard (Rikki) Andrew
Cattermole wrote:
On 06/06/2023 2:25 AM, Mike Parker wrote:
On Monday, 5 June 2023 at 14:16:39 UTC, ryuukk_ wrote:
In my book this is broken and needs to be fixed, as a user i
don't care about under the hood things, it's a you prob
On Thursday, 8 June 2023 at 05:52:43 UTC, Benny wrote:
```
```
app.obj : error LNK2019: unresolved external symbol
GetInterfaceInfo referenced in function _Dmain
app.exe : fatal error LNK1120: 1 unresolved externals
Error: linker exited with status 1120
```
That's a linker error telling you
On Thursday, 8 June 2023 at 07:01:44 UTC, Benny wrote:
I got something! thank you.
now I need to understand how can I get the properties of the
GetInterfaceInfo
```
import core.sys.windows.iphlpapi;
import std.stdio;
import core.stdc.stdlib;
void main()
{
uint* i;
i =
On Friday, 16 June 2023 at 06:38:17 UTC, Murloc wrote:
Thanks! That works well. I thought that `module pack.file1` is
implicitly there by default :')
The compiler will use the file name as a default module name if
you don't provide one, but that's *just* the module name. It
doesn't take in
On Friday, 28 July 2023 at 21:07:47 UTC, bachmeier wrote:
On Friday, 28 July 2023 at 17:07:37 UTC, IchorDev wrote:
No shit, it felt like an eternity. But it's still not in the
spec...?
I'd expect it to appear in the spec after there's a real
release. This is the first I've heard of it bei
On Sunday, 30 July 2023 at 05:28:32 UTC, ryuukk_ wrote:
I should have explained exactly what i am doing..
Looks like it doesn't work when i compile in 2 step
- compile with: ``dmd -c of=bin/game.o``
- link with: ``dmd bin/game.o``
When doing it this way, then it doesn't work
However, when com
On Friday, 23 February 2024 at 23:30:26 UTC, kdevel wrote:
The DIP 1036e is not listed in
https://github.com/dlang/DIPs/tree/master/DIPs
is this intentional?
The DIP process has been closed for a while now. Atila did write
a proposal for Adam's implementation, and I'll add it to the repo
On Saturday, 30 March 2024 at 05:01:32 UTC, harakim wrote:
@D Language Foundation - This is a HUGE selling point. I had to
use cups the other day and I just copied some code from a d
file and linked the library. It was so easy I was suspicious
but it worked. Using C from D is pretty much as
On Wednesday, 24 July 2019 at 16:37:33 UTC, Greatsam4sure wrote:
On Wednesday, 24 July 2019 at 15:56:43 UTC, drug wrote:
24.07.2019 18:51, Greatsam4sure пишет:
Good day everyone. I am thinking, if there is a way to
contact any person on dlang forums through mail or any other
means. How do I
On Saturday, 27 July 2019 at 11:54:09 UTC, BoQsc wrote:
I would like to make sure that function in module that I have
won't be imported, is this possible to achieve?
Test subject:
mainFile.d
import otherFile;
void main(){
}
otherFile.d
import std.stdio : writeln;
import std.file
On Saturday, 27 July 2019 at 12:05:27 UTC, Mike Parker wrote:
module otherFile;
version otherMain() {
...
}
eh...
version(otherMain) {
}
On Tuesday, 13 August 2019 at 04:40:53 UTC, Chris Katko wrote:
You can drop this straight into run.dlang.io:
import std.stdio;
class base{ float x=1;}
class child : base {float x=2;} //shadows base variable!
void main()
{
base []array;
child c = new child;
array ~= c;
writeln
On Tuesday, 13 August 2019 at 22:12:23 UTC, Mirjam Akkersdijk
wrote:
Though, it left me with some semi-offtopic questions unanswered:
(1) Ali, do you mean that from an optimization viewpoint, it's
better to keep appending like `nodes ~= ...` instead of setting
the length first? I would like
On Friday, 23 August 2019 at 16:09:16 UTC, jicman wrote:
}
That looks like D2 code. I am trying to compile D1 code. I
think the linker is not getting something right.
You might try declaring the offending functions as
extern(Windows) function pointers and then loading them from the
appro
On Wednesday, 28 August 2019 at 04:19:49 UTC, Jabari Zakiya wrote:
I have a function (say func1) that takes 1 input value (an
integer number) and outputs 4 values (2 integers and 2 arrays
of integers).
Then inside another function (say func2) I provide the 1 input
to func1 and then want to as
On Saturday, 31 August 2019 at 12:07:56 UTC, cc wrote:
And what, if anything, can I do to avoid it?
import core.stdc.stdio : printf;
There are no @nogc versions of the Phobos write* and format
functions.
On Wednesday, 4 September 2019 at 03:07:18 UTC, lili wrote:
Hi:
For some reason it too slow that some times i visited
dlang.org, Can admin make a pdf document for download.
Documentation is installed with the compiler.
On Wednesday, 4 September 2019 at 12:24:47 UTC, lili wrote:
On Wednesday, 4 September 2019 at 04:21:10 UTC, Mike Parker
wrote:
On Wednesday, 4 September 2019 at 03:07:18 UTC, lili wrote:
Hi:
For some reason it too slow that some times i visited
dlang.org, Can admin make a pdf document for d
On Friday, 6 September 2019 at 05:59:30 UTC, Jamie wrote:
time and fmod is called so it breaks. In case 3, with default
struct arguments, I thought that the constructor I have defined
was being called, however the default constructor was being
called (this()) so fmod wasn't being called.
The
On Tuesday, 10 September 2019 at 08:29:59 UTC, Ron Tarrant wrote:
This morning's discussion covers the basic workings and
relationship between the TextView and TextBuffer widgets.
Here's the link:
https://gtkdcoding.com/2019/09/10/0069-textview-and-textbuffer.html
Seriously impressed that you
On Thursday, 12 September 2019 at 11:40:33 UTC, Ron Tarrant wrote:
string myCSS = "tab { background-color: #f2f2f2; }";
enum will work just as well here and without the need for the
variable:
enum myCSS = "tab { background-color: #f2f2f2; }";
The original error was becaus
On Thursday, 12 September 2019 at 12:53:27 UTC, BoQsc wrote:
On Thursday, 12 September 2019 at 12:52:48 UTC, BoQsc wrote:
Is there a way to archive multiple .d source code files and
make that archive executable, or something similar?
https://en.wikipedia.org/wiki/JAR_(file_format)
A JAR file
On Thursday, 19 September 2019 at 03:44:28 UTC, Shadowblitz16
wrote:
let's say I have a project the relies on multiple packages..
is it possible to combine these libraries into a single one (or
1 per os) for final shipment of a program?
I assume you're referring to dub packages, in which case
On Thursday, 19 September 2019 at 03:47:05 UTC, Shadowblitz16
wrote:
Is there a way to make a indexed graphics library that can
handle importing and exporting true color images?
I don't see why not.
I would guess something like this could be simulated with
pointers and references right?
I
On Thursday, 19 September 2019 at 18:28:25 UTC, Shadowblitz16
wrote:
I mean I don't want to have multiple dependency dll's but
instead just my own dll with the dependencies packed inside.
of course dll is only for windows so I would like this done for
mac and linux too
Then statically link
On Thursday, 19 September 2019 at 18:25:05 UTC, Shadowblitz16
wrote:
I wanted to do 4bpp 16 color graphics.
and I didn't want to load anything unnecessary in the image
like the palette but instead supply it myself as a Color[16];
I see. In that case, I suggest you find some tutorials on
sof
On Friday, 27 September 2019 at 22:55:22 UTC, Murilo wrote:
Ahhh, that clears everything up. I will then leave the program
without the transparency and wait until you get around to
implement the fixes to it, I am not a developer, I am a
scientist, I only use libraries, I don't know how to make
On Saturday, 28 September 2019 at 13:41:24 UTC, matheus wrote:
Ok, I took a look over my old projects and I found exactly what
you want, by the way it's from 2012.
It uses Derelict 2.0 bindings and will draw a PNG image where
you can move around with cursor keys.
Murilo, if you do decide to
On Tuesday, 1 October 2019 at 16:24:49 UTC, a11e99z wrote:
why I want to know such info?
CodinGame sometimes use time-limit for bot move for example
100ms, and bot will be disqualified in case no answer
Simple solution: don't allocate every frame. The GC only runs
when it needs to and it on
On Thursday, 3 October 2019 at 04:32:52 UTC, Brett wrote:
Ok, fine!
auto r = &x.a;
Now r is a reference, great!
No, r is a pointer, not a reference. D does not have reference
variables.
But now the semantics of using the array completely change and
errors abound!
Probably because yo
On Thursday, 3 October 2019 at 04:57:44 UTC, mipri wrote:
On Thursday, 3 October 2019 at 04:33:26 UTC, Brett wrote:
I was trying to avoid such things since X is quite long in
name. Not a huge deal... and I do not like the syntax because
it looks like a constructor call.
It is a constructor ca
On Saturday, 19 October 2019 at 00:57:48 UTC, Prokop Hapala wrote:
The dmech/demos also seems to be almost running just it somehow
cannot find or use my libsdl.so library which it just compiled
(it is in 'dmech/demos/lib')
derelict.util.exception.SharedLibLoadException@derelict/util/exception
On Tuesday, 22 October 2019 at 07:40:01 UTC, Prokop Hapala wrote:
1) I'm not speaking about OpenGL and SDL specifically (that was
just small example which I tried first)
FYI, the BindBC bindings can be configured as dynamic (in which
all the of C library functions are declared as function p
On Sunday, 3 November 2019 at 07:06:12 UTC, Mike Parker wrote:
Here's an example, winhello.d, that should work with all of the
following command lines:
Sorry, here's the example:
== winhello.d
/+ dub.sdl:
name "entry"
dflags "-L/SUBSYSTEM:WINDOWS" "-L/ENTRY:mainCRTStartup"
platform="win
On Saturday, 2 November 2019 at 20:01:27 UTC, Vinod K Chandran
wrote:
Hi all,
I just found that DFL gui library very interesting. But after
some searching, i can see that DFL is inactive and there is few
other forks for it. So this is my question - Which fork is good
for a gui development in w
On Tuesday, 5 November 2019 at 08:47:05 UTC, Ferhat Kurtulmuş
wrote:
value of int which is 0. I wonder how new memory is allocated
without an explicit malloc here. Sorry for this noob question
in advance, I could not find any doc mentioning a similar case.
int* vals = cast(int*)malloc
On Tuesday, 5 November 2019 at 10:32:03 UTC, Ferhat Kurtulmuş
wrote:
On Tuesday, 5 November 2019 at 10:31:05 UTC, Ferhat Kurtulmuş
wrote:
On Tuesday, 5 November 2019 at 10:13:59 UTC, Mike Parker wrote:
[...]
Yep, it is obvious that my code is wrong. s1 and s2 point to
the same memory address
On Monday, 11 November 2019 at 01:28:54 UTC, userTY wrote:
import all; // can see App, Form and Button exported (public)
symbols
---
The approach of using an "all" module is an old hack that is no
longer necessary. Today, the way to approach is to use a "package
module".
https://dlang.o
On Thursday, 14 November 2019 at 12:25:30 UTC, Robert M. Münch
wrote:
From the docs, which I find extremly hard to understand:
auto csvReader(Contents = string, Malformed ErrorLevel =
Malformed.throwException, Range, Separator = char)(Range input,
Separator delimiter = ',', Separator quote =
On Friday, 22 November 2019 at 04:22:07 UTC, FireController#1847
wrote:
Right, but readln will only wait until the user presses the
delimiter (by default Enter/Return). I want it to wait until
ANY key is pressed, not a specific key
The documentation for std.stdio.File shows two functions for
On Friday, 22 November 2019 at 04:45:21 UTC, Mike Parker wrote:
On Friday, 22 November 2019 at 04:22:07 UTC,
FireController#1847 wrote:
Right, but readln will only wait until the user presses the
delimiter (by default Enter/Return). I want it to wait until
ANY key is pressed, not a specific k
On Tuesday, 26 November 2019 at 03:55:24 UTC, mipri wrote:
On Tuesday, 26 November 2019 at 03:06:52 UTC, Omar wrote:
the page here https://dlang.org/spec/function.html
suggests you can implement a function in a different file
...
mentioned the endeavour of no-bodied-functions as a way of
prese
On Wednesday, 27 November 2019 at 02:48:53 UTC, cartland wrote:
Trying out exception handling. When an exception occurs,
program seems to just exit.
dub -a x86_mscoff
I compiled it with dmd and ran it directly from the command line
and it worked fine:
C:\dev\D\scratch>ex
finally
catch %sf
On Wednesday, 27 November 2019 at 05:15:10 UTC, cartland wrote:
No MS installed. Just using DMD.
-
dub -a x86_mscoff --force -v
:
So please try it without dub
dmd -m32mscoff x.d
If that works, add some debug flags like dub does:
dmd -m32mscoff -debug -g x.d
And see what happens.
On Tuesday, 3 December 2019 at 10:03:22 UTC, Basile B. wrote:
That's interesting details of D developement. Since you reply
to the first message I think you have not followed but in the
last reply I told that maybe we should be able to name the type
of null. I think this relates to TBottom t
On Tuesday, 3 December 2019 at 10:06:22 UTC, Mike Parker wrote:
On Tuesday, 3 December 2019 at 10:03:22 UTC, Basile B. wrote:
That's interesting details of D developement. Since you reply
to the first message I think you have not followed but in the
last reply I told that maybe we should be
On Friday, 6 December 2019 at 21:02:53 UTC, realhet wrote:
Here's my latest attempt on EXTENDING std.algorithm.max's
functionality with a max operation on a custom type.
The type is the GLSL vec2 type which does the max operation
component-wise.
The D std implementation uses the < operator, b
On Sunday, 22 December 2019 at 06:25:42 UTC, rikki cattermole
wrote:
On 22/12/2019 7:11 PM, moth wrote:
is there any function i can call or setting i can adjust to
get D to do the same, or do i have to wait for something to be
fixed in the language / compiler itself?
Not a bug. This is
On Tuesday, 24 December 2019 at 07:37:02 UTC, Rumbu wrote:
I am trying to create an array of functions inside a struct.
struct S {
void f1() {}
void f2() {}
alias Func = void function();
immutable Func[2] = [&f1, &f2]
}
What I got: Error: non-constant expression '&f1'
Tried also with
On Tuesday, 24 December 2019 at 05:51:37 UTC, Adnan wrote:
Hello, how does one:
1. Force static linking (build with `-defaultlib` flag)
Generally, when you don't see a buildOption in the docs for the
compiler flag you want, use dflags.
https://dub.pm/package-format-json.html
2. Specify
On Tuesday, 24 December 2019 at 13:13:12 UTC, MoonlightSentinel
wrote:
On Tuesday, 24 December 2019 at 10:40:16 UTC, Mike Parker wrote:
struct S {}
void f1(S s) {}
void f2(S s) {}
alias Func = immutable(void function());
immutable Func[2] funcs = [cast(Func)&f1, cast(Func)&f2];
Though, it's n
On Monday, 23 December 2019 at 20:45:53 UTC, TheGag96 wrote:
I've loved Sublime for years. I use it for everything, really.
So pretty, so fast.
I really like Sublime, too. Paid for it. But now that VS Code's
performance is within my tolerance range, the built-in console
makes the difference
On Wednesday, 25 December 2019 at 10:57:45 UTC, Ron Tarrant wrote:
On Tuesday, 24 December 2019 at 16:43:06 UTC, Mike Parker wrote:
But now that VS Code's
performance is within my tolerance range
Just curious what you mean by this, Mike.
For a while, typing in VS Code was clunky compared to
On Saturday, 28 December 2019 at 20:22:51 UTC, JN wrote:
import std.stdio;
class Base
{
bool b = true;
}
class Derived : Base
{
bool b = false;
}
void main()
{
// 1
Base b = new Derived();
writeln(b.b); // true
// 2
Derived d = new Derived();
writeln(d.b); // false
}
On Friday, 10 January 2020 at 15:06:07 UTC, Marcone wrote:
Very complicated. Can you send me the simple clear code?
https://docs.microsoft.com/en-us/windows/win32/dlgbox/using-common-dialog-boxes
On Monday, 13 January 2020 at 11:58:51 UTC, mark wrote:
Both those books are published by Packt who normally have no
quality control at all as I've discovered to my cost. However
It's hit and miss in my experience. I've picked up some utter
crap from them, but I've also found some real gems
On Wednesday, 15 January 2020 at 20:06:01 UTC, mark wrote:
However, what I really miss is a contents page so that I can
look at each topic and jump back when I want to recap something.
Please submit an enhancement request:
https://github.com/dlang-tour/core/issues
For example, I haven't f
On Wednesday, 22 January 2020 at 18:53:49 UTC, mark wrote:
Is there a "D weekly news" I could do an email subscription to?
Or at least a way to get notified by email when a new item
appears on https://dlang.org/blog/ ?
This Week in D linked above is great for a weekly summary.
To D Blog has a
On Wednesday, 22 January 2020 at 23:08:09 UTC, Russel Winder
wrote:
On Wed, 2020-01-22 at 22:48 +, Mike Parker via
Digitalmars-d-learn
wrote:
[…]
To D Blog has an RSS feed:
http://dlang.org/blog/index.php/feed/
[…]
This URL doesn't seem to work for me.
It redirects to:
On Wednesday, 22 January 2020 at 23:23:41 UTC, Adam D. Ruppe
wrote:
Several pages on the official blog give code 404 even though
they work. Your RSS reader probably just isn't checking the
code, but the browser is.
These should all be fixed on the server... could be hurting seo
too.
Got any
On Thursday, 23 January 2020 at 00:58:10 UTC, Adam D. Ruppe wrote:
On Thursday, 23 January 2020 at 00:52:10 UTC, Mike Parker wrote:
Got any examples? No one has reported this to me before and I
haven’t encountered a 404 in a while.
Almost all of them!
Hit F12 to open browser tools and notice
On Thursday, 23 January 2020 at 06:23:14 UTC, Mike Parker wrote:
I'm not getting any 404s in the network tab in Chrome's dev
tools. Even on a reload. Most everything is 200, with a handful
of 204s. A couple are 302 or 304, and there's one 101. Am I
missing something?
Apparently so. Firefox
On Thursday, 23 January 2020 at 06:27:31 UTC, Mike Parker wrote:
Apparently so. Firefox shows me a 404 for the URL with the
parameter ?relatedposts=1. Must be something in the Wordpress
settings triggering the fetch. Maybe with Jetpack. I wonder why
Chrome doesn't show it. I'll look into it.
On Thursday, 23 January 2020 at 15:44:10 UTC, Adam D. Ruppe wrote:
Or delete all that wordpress junk and make something in D :P
I intend to delete all that Wordpress junk and go completely
static eventually.
On Thursday, 30 January 2020 at 04:31:46 UTC, Marcone wrote:
I am very noob. Can you send me the code?
You've been asking a lot of questions about the Win32 API. This
is a D programming forum, not a Win32 API forum. I'm sure people
are generally happy to help point you in the right directio
On Thursday, 30 January 2020 at 06:12:32 UTC, Michael wrote:
When 'dmd rl -L-lreadline' in the command line. I do get the
following error:
Error: module rl is in file 'rl.d' which cannot be read.
So probably I'm missing something unfortunately I don't know
what.
Is your source file named rl
On Thursday, 30 January 2020 at 06:27:36 UTC, Michael wrote:
On Thursday, 30 January 2020 at 06:15:54 UTC, Mike Parker wrote:
Is your source file named rl.d? And are you running dmd in the
source file's directory?
No, I did not. Changed it now and it works with dmd. Great!
Tried the same with
On Sunday, 9 February 2020 at 22:10:57 UTC, solnce wrote:
Personally I feel this is more about lack of the vision, as
Alexandrescu once said. Now it feels like D is mostly the
compiler, but I think, that having one big mega project (like
IDE+RAD) could give a new breath and significance to D l
On Friday, 13 March 2020 at 15:16:06 UTC, wjoe wrote:
bindSymbol(&apiVersion, "VersionOfAPI");
}
Is it possible to convince the compiler to look the other way
while binding @safe functions from the plugin ?
It probably has nothing to do with @safe, but is because of the
void**.
bin
On Friday, 13 March 2020 at 16:11:53 UTC, wjoe wrote:
On Friday, 13 March 2020 at 16:04:06 UTC, Mike Parker wrote:
On Friday, 13 March 2020 at 15:16:06 UTC, wjoe wrote:
bindSymbol(&apiVersion, "VersionOfAPI");
}
Is it possible to convince the compiler to look the other way
while bindi
On Saturday, 14 March 2020 at 20:53:45 UTC, Abby wrote:
I would like to export some functions from my bettec dll for
dotnet core application in windows.
Right now I have compiled dll using dmd v2.091.0-dirty simply
by ´dub build´
this is the function I have
extern(C) char* test_echo(const(c
On Sunday, 15 March 2020 at 18:14:44 UTC, bauss wrote:
I would recommend using Derelict and SDL with D since it's the
most mature.
Please don't recommend Derelict to anyone :-) bindbc-sdl is what
folks should be using now. I'm not maintaining Derelict anymore.
On Sunday, 15 March 2020 at 21:33:29 UTC, Arine wrote:
I wouldn't use SDL2 for rendering. It is really just there for
legacy. The only thing people use SDL2 is for setting up a
window and creating a render context for OpenGL/Vulkan/Directx,
along with handling input/events.
There's no ne
On Monday, 16 March 2020 at 05:45:52 UTC, bauss wrote:
Please don't recommend Derelict to anyone :-) bindbc-sdl is
what folks should be using now. I'm not maintaining Derelict
anymore.
Haven't even heard of that!
Does it work in similar fashion?
Yes. The loader is @nog and betterC compat
On Monday, 16 March 2020 at 16:19:26 UTC, Arine wrote:
There's no need for someone learning 2D games to even bother
with SDL2 to begin with. If you use SDL2 you are going to be
using something no one else uses, you'll be wasting your by
using something that isn't that good and what you learn f
On Saturday, 21 March 2020 at 04:45:29 UTC, Kirill wrote:
I was playing around with visibility attributes in D. I created
a class with private variables. Then I tried to access those
variables through the class object. It compiled without any
errors. However, ...
Shouldn't the compiler output
On Sunday, 22 March 2020 at 18:48:32 UTC, Abby wrote:
Is there a way to create a template that would do the same is
glib
g_return_val_if_fail()
(https://developer.gnome.org/glib/stable/glib-Warnings-and-Assertions.html#g-return-val-if-fail)
I was hoping something like this would work
templa
On Sunday, 22 March 2020 at 19:04:40 UTC, Mike Parker wrote:
```
T returnValIfFail(T)(bool expr, T val) {
if(expr) return val;
else assert(0);
}
```
Heh, of course, as Dennis pointed out, that's essentialy
assert(expr).
```
assert(expr);
x = val;
```
On Tuesday, 31 March 2020 at 02:51:11 UTC, Superstar64 wrote:
I want to be modify an associative array by reference from
another function. However null associative arrays are pass by
value. How do I generically create an empty associative array?
---
import std.stdio;
void addElement(int[int]
On Monday, 13 April 2020 at 21:32:43 UTC, Adnan wrote:
On Monday, 13 April 2020 at 21:31:49 UTC, Adnan wrote:
I'm a bit confused about D's development process. I've seen
people discussing DIPs in Github. I've also seen people
discuss internal issues in bugzilla. How do these to correlate?
I'm
On Friday, 24 April 2020 at 21:25:11 UTC, matheus wrote:
On Friday, 24 April 2020 at 21:11:48 UTC, Steven Schveighoffer
wrote:
... and whomever controlled the sociomantic youtube account
took down all the videos...
First of all thanks for replying and... Ouch! After that I hope
D Foundation l
On Saturday, 25 April 2020 at 04:11:02 UTC, Ali Çehreli wrote:
On 4/24/20 2:11 PM, Steven Schveighoffer wrote:> On 4/24/20
4:24 PM, matheus wrote:
> whomever controlled the sociomantic youtube account took down
> all the videos.
I think it's unintentional because the same thing happened to
my
On Wednesday, 29 April 2020 at 09:43:53 UTC, Sam E. wrote:
Though the program built with dub is now crashing at runtime
when calling `writeln` within the `WinMain` block.
The exception error is:
Exception has occurred: W32/0xc096
Unhandled exception at 0x7FF643C5AFE4 in test-win32.ex
On Wednesday, 29 April 2020 at 10:26:40 UTC, Sam E. wrote:
I took the WinMain from https://wiki.dlang.org/D_for_Win32,
should that documentation be updated to use a normal main
function instead? Also the details regarding linker flags may
be a good addition to that wiki page.
Yeah, it says
On Wednesday, 29 April 2020 at 10:27:35 UTC, Sam E. wrote:
To be honest, I haven't yet found the way to switch between
-m32 and -m64 (or other) via dub :)
Pass the -a flag on the dub command line with the appropriate
argument:
For -m32: -ax86
For -m32mscoff: -ax86_mscoff
For -m64: -ax86_6
On Wednesday, 29 April 2020 at 10:44:48 UTC, Mike Parker wrote:
On Wednesday, 29 April 2020 at 10:26:40 UTC, Sam E. wrote:
I took the WinMain from https://wiki.dlang.org/D_for_Win32,
should that documentation be updated to use a normal main
function instead? Also the details regarding linker
On Wednesday, 29 April 2020 at 11:55:54 UTC, Sam E. wrote:
On Wednesday, 29 April 2020 at 10:46:30 UTC, Mike Parker wrote:
On Wednesday, 29 April 2020 at 10:44:48 UTC, Mike Parker wrote:
Yeah, it says "WinMain is needed", which has never been true.
THere's no need for the def file either.
On Wednesday, 29 April 2020 at 11:55:54 UTC, Sam E. wrote:
I cannot find a D example using Win32 and the normal main
function, and while it is working for simple message boxes, as
soon as I want to do something slightly more complex (using a
window), an hInstance has to be provided (as far a
On Friday, 8 May 2020 at 20:14:05 UTC, Simen Kjærås wrote:
The intel-intrinsics dub package aims to provide a
compiler-independent layer:
https://code.dlang.org/packages/intel-intrinsics
TIL, thanks! :)
--
Simen
DConf 2019: Not intrinsically about intrinsics -- Guillaume Piolat
https:
On Sunday, 17 May 2020 at 22:30:22 UTC, a beginner wrote:
I have searched online for some info, indeed I found something,
but not being familiar with the tools it hasn't been terribly
useful. Only it confirms that windows support is somewhat
disappointing in general, xp or not.
I've been usi
On Tuesday, 19 May 2020 at 20:51:01 UTC, Luis wrote:
So, I'm writing my own implementation of sparse sets, and I
take as reference emsi_containers for allocator usage. I saw
that they have disabled postblit operator... But i don't
understand exactly why. In special, when they implement
InputRa
On Wednesday, 20 May 2020 at 21:06:35 UTC, welkam wrote:
On Wednesday, 20 May 2020 at 20:49:52 This is not a forum but a
frontend to a mailing list.
Both the forums and the mailing lists are interfaces to
newsgroups at news.digitalmars.com.
On Friday, 22 May 2020 at 19:19:19 UTC, Arsium wrote:
Just I tried to launch those functions from win32 api and seems
doesn't work
"doesn't work" isn't very helpful. Are you seeing compiler
errors? Linker errors? Runtime errors? Please describe your
problem.
On Saturday, 23 May 2020 at 09:27:46 UTC, Tim wrote:
Hi all, I'm a little new to D and I'm wondering how I can store
a reference to the calling object. I want to create a reference
to an object's parent so that each time I go to update the
sprite, it is able to grab its position from the parent
On Monday, 25 May 2020 at 08:39:23 UTC, John Burton wrote:
I believe that in D *this* is a reference to the
object and not a pointer like in C++.
So I think that writing &this might be what you need?
No. A class reference is a pointer under the hood. Getting its
address will result in a point
On Monday, 25 May 2020 at 16:26:31 UTC, Vinod K Chandran wrote:
Here is my full code. Please take a look.
https://pastebin.com/av3nrvtT
The error has nothing to do with taking a pointer to `this`. It's
suggesting that somewhere in your code you're attempting to use
the `this` reference like
101 - 200 of 1254 matches
Mail list logo