On Thursday, 1 August 2024 at 07:03:04 UTC, IchorDev wrote:
Hey just a heads up, you might wanna use
[`readText`](https://dlang.org/library/std/file/read_text.html)
and
[`lineSplitter`](https://dlang.org/library/std/string/line_splitter.html) just so you don’t have to deal with file handles.
.
Nevermind. The segfault happened because I accidentally used the
Mesh class before loading OpenGL. I don't know if it works as
intended, but it no longer crashes.
I decided to attempt to write my own OBJ loading library, seeing
as the spec for the format is readily available online. Building
with DMD and on Windows, and testing on [this
model](https://learnopengl.com/data/models/backpack.zip), the
code acts normally for a while, and then apparently segf
Is there a good package available that can load models, Wavefront
.obj files in particular? I tried to use the existing bindings
to old versions of Assimp, but I could not get Assimp itself to
build on my machine.
Thanks in advance.
As of late, I have taken up an interest in learning about how the
D language is implemented at a compiler level, specifically the
GC implementation. Unfortunately, the source code is poorly
documented, and is too large to simply read all of it in a
reasonable amount of time. If anyone here ca
On Saturday, 29 July 2023 at 17:11:50 UTC, Dennis wrote:
On Saturday, 29 July 2023 at 16:47:34 UTC, Ruby The Roobster
wrote:
Dub refuses to fetch the ~master branch of a package, even
when dub.json tells it to. Is there any workaround to this?
Delete dub.selections.json, which locks in depend
Dub refuses to fetch the ~master branch of a package, even when
dub.json tells it to. Is there any workaround to this?
On Friday, 28 July 2023 at 18:52:59 UTC, Ruby The Roobster wrote:
On Friday, 28 July 2023 at 18:17:18 UTC, Gjiergji wrote:
I am coming from a C# background. I understood that there is
no async/await equivalent in D (except fibers which are not
suitable for multi threading), but if I am using th
On Friday, 28 July 2023 at 18:17:18 UTC, Gjiergji wrote:
I am coming from a C# background. I understood that there is no
async/await equivalent in D (except fibers which are not
suitable for multi threading), but if I am using threads, what
is the D idiom to implement cancellation?
Usually a
On Friday, 28 July 2023 at 16:20:26 UTC, Dennis wrote:
On Friday, 28 July 2023 at 16:08:43 UTC, Ruby The Roobster
wrote:
Everything displays fine (with orthographic projection, of
course) if you leave the projection as the identity matrix,
but setting it as I have done results in a blank screen
I again am having issues with OpenGL, this time with the
projection matrix. Using gl3n, I have the following code:
```d
// model matrix
mat4 trans = mat4(0f);
trans.make_identity();
trans = trans.rotatex(radians(-55));
// view matrix:
mat4 view = mat4(0f);
view.make
On Sunday, 23 July 2023 at 17:45:53 UTC, Ferhat Kurtulmuş wrote:
On Sunday, 23 July 2023 at 17:35:03 UTC, Ruby The Roobster
[SNIP]
Thank you. I'm still trying to work out how it works. It
seems as if the creator tried the same thing that I did, and
then commented it out. Perhaps for the sa
On Sunday, 23 July 2023 at 17:35:03 UTC, Ruby The Roobster wrote:
On Sunday, 23 July 2023 at 17:02:40 UTC, Ferhat Kurtulmuş wrote:
On Sunday, 23 July 2023 at 16:21:05 UTC, Ruby The Roobster
wrote:
I'm currently trying to load two textures and apply them to a
rectangle, following
[this](https://
On Sunday, 23 July 2023 at 17:02:40 UTC, Ferhat Kurtulmuş wrote:
On Sunday, 23 July 2023 at 16:21:05 UTC, Ruby The Roobster
wrote:
I'm currently trying to load two textures and apply them to a
rectangle, following
[this](https://learnopengl.com/Getting-started/Textures) which
is linked to from
I'm currently trying to load two textures and apply them to a
rectangle, following
[this](https://learnopengl.com/Getting-started/Textures) which is
linked to from the README file of the bindbc OpenGL bindings.
I'm using Gamut to load the files, with the file:
```d
module texture;
import gamu
On Thursday, 20 July 2023 at 04:41:48 UTC, Chris Piker wrote:
[SNIP]
I just tried ggplotd and it was easy to make it work on Linux,
only one external apt command needed, but on Windows, even that
is a deal breaker. Package management on Windows seems to be
wild-west/nonexistent.
Try MinG
On Monday, 6 March 2023 at 00:55:04 UTC, ryuukk_ wrote:
Hello,
I am trying to build: https://github.com/dlang-community/DCD/
as a static lib
[...]
Try ```dub build --build-mode=allAtOnce```.
On Friday, 10 February 2023 at 23:39:11 UTC, Ruby The Roobster
wrote:
The problem is that Node.next is not, and cannot be `static`.
Thus, there is no way for you to pass it as an alias template
parameter, and this should be considered a compiler bug that
this doesn't error out.
Nevermind
On Friday, 10 February 2023 at 22:10:20 UTC, Ben Jones wrote:
I'm trying to write a range adaptor for linked list types. The
range type seems to work OK, but my helper function to deduce
the node type has a compiler error. My hunch is that
`nextField` loses its association with T when I'm try
I'm trying to do something like
```d
void main()
{
auto d = &c;
*d.writeln;
}
void c()
{
}
```
In an attempt to get the hexadecimal representation of the
machine code of a function. Of course, function pointers cannot
be dereferenced. What do?
Furthermore, I would like to be able
On Friday, 20 January 2023 at 18:58:16 UTC, seany wrote:
Hi I am googling to find some vibe.d and mongoDB tutorial. Are
their some available? Thank you
There is a nice book, titled D Web Development, that despite
being 6 years old, is still mostly applicable to using vibe.d.
The only archaic
On Friday, 20 January 2023 at 13:38:52 UTC, Hipreme wrote:
On Friday, 20 January 2023 at 11:28:23 UTC, thebluepandabear
wrote:
...
[snip]
With a single file, you can do:
```d
final class Algo
{
@disable this();
static:
void drawLine(...){}
}
```
This also works, but it dissimilar
On Friday, 20 January 2023 at 13:38:47 UTC, evilrat wrote:
On Friday, 20 January 2023 at 13:17:05 UTC, Ruby The Roobster
...
[snip]
Also there is various import options such as renamed import or
static import(doesn't add module to a scope thus requiring to
fully qualify it)
static import, c
On Friday, 20 January 2023 at 13:03:18 UTC, thebluepandabear
wrote:
ll
a function without instantiating said class, as functions act
on the class object.
Ok, thanks.
I think D should implement something similar to `static class`
but I doubt it will happen.
D isn't Java, and never will be.
On Friday, 20 January 2023 at 12:55:37 UTC, Ruby The Roobster
wrote:
On Friday, 20 January 2023 at 11:28:23 UTC, thebluepandabear ...
There is no way to implement that functionality in D. `final`
means that the class cannot be extended, and `abstract`
requires that only an extension of said c
On Friday, 20 January 2023 at 11:28:23 UTC, thebluepandabear
wrote:
Hi,
In Java/C# you can create purely static classes.
These are classes whose methods are all static, the classes
cannot be derived from or instantiated:
```
static class Algo {
void drawLine(Canvas c, Pos from, Pos to) {
On Friday, 20 January 2023 at 03:39:48 UTC, H. S. Teoh wrote:
On Fri, Jan 20, 2023 at 03:34:43AM +, Ruby The Roobster via
Digitalmars-d-learn wrote:
On Friday, 20 January 2023 at 03:30:56 UTC, Steven
Schveighoffer wrote:
> On 1/19/23 10:11 PM, Ruby The Roobster wrote:
> ...
>
&g
On Friday, 20 January 2023 at 03:30:56 UTC, Steven Schveighoffer
wrote:
On 1/19/23 10:11 PM, Ruby The Roobster wrote:
...
The point is to be a range over the original input, evaluated
lazily. Using this building block, you can create an array, or
use some other algorithm, or whatever you want.
On Friday, 20 January 2023 at 03:11:33 UTC, Ruby The Roobster
wrote:
Take this example:
```d
import std;
void main()
{
auto c = "a|b|c|d|e".splitter('|');
c.writeln;
string[] e = ["a", "b", "c", "d", "e"];
assert(c.equal(e));
typeof(c).stringof.writeln;
}
```
The program pri
Take this example:
```d
import std;
void main()
{
auto c = "a|b|c|d|e".splitter('|');
c.writeln;
string[] e = ["a", "b", "c", "d", "e"];
assert(c.equal(e));
typeof(c).stringof.writeln;
}
```
The program prints:
["a", "b", "c", "d", "e"]
Result
What is the purpose of this 'R
I just fixed a bug in my personal D hobby project. After pushing
everything to github, I noticed that it fails to link with the
latest LDC on MacOS. The error I'm getting is thus:
```
ld: warning: alignment (1) of atom 'anon' is too small and may
result in unaligned pointers
ld: warning: poi
On Sunday, 13 November 2022 at 21:16:32 UTC, mw wrote:
On Saturday, 19 September 2020 at 06:11:15 UTC, Jacob Carlborg
wrote:
On 2020-09-17 16:58, drathier wrote:
What's the proper way to exit with a specific exit code?
I found a bunch of old threads discussing this, making sure
destructors ru
On Friday, 30 September 2022 at 06:25:33 UTC, Imperatorn wrote:
On Friday, 30 September 2022 at 00:18:42 UTC, Ruby The Roobster
wrote:
On Thursday, 29 September 2022 at 16:07:59 UTC, mw wrote:
On Thursday, 29 September 2022 at 16:02:43 UTC, Ruby The
Roobster wrote:
Is there any way one can inte
On Thursday, 29 September 2022 at 16:07:59 UTC, mw wrote:
On Thursday, 29 September 2022 at 16:02:43 UTC, Ruby The
Roobster wrote:
Is there any way one can interface with Rust, such as with a
struct, or a function?
I know that rust has an extern keyword, but I can't get it to
work.
https://
Is there any way one can interface with Rust, such as with a
struct, or a function?
I know that rust has an extern keyword, but I can't get it to
work.
On Tuesday, 13 September 2022 at 11:16:55 UTC, test123 wrote:
```d
struct c { uint a, b;}
__gshared const c d = { 3, 4};
__gshared const e = &d.a;
```
./test.d(4): Error: expression `&c(3u, 4u).a` is not a constant
I need this to work around C struct array member like this:
```c
s
On Friday, 19 August 2022 at 05:50:17 UTC, Mike Parker wrote:
On Friday, 19 August 2022 at 04:25:25 UTC, Ruby The Roobster
wrote:
[...]
If the template is never instantiated, it never makes it into
the executable. It doesn't matter if it's in production or not,
and has nothing to do with t
On Friday, 19 August 2022 at 04:16:28 UTC, JG wrote:
On Friday, 19 August 2022 at 03:13:03 UTC, Ruby The Roobster
wrote:
On Friday, 19 August 2022 at 03:10:38 UTC, Ruby The Roobster
wrote:
This snippet compiles. Even if `dsds` and `sadsad` are
defined nowhere, this code compiles.
[SNIP]
The
On Friday, 19 August 2022 at 03:10:38 UTC, Ruby The Roobster
wrote:
This snippet compiles. Even if `dsds` and `sadsad` are defined
nowhere, this code compiles.
[SNIP]
The reason why this compiles is because of the varidic template
parameter, `Mtypes`.
Either there is something I'm missing,
This snippet compiles. Even if `dsds` and `sadsad` are defined
nowhere, this code compiles.
```d
import std.typecons : Tuple;
sadsad executeFunction(Mtypes...)(dstring func, Tuple!(Mtypes)
args)
{
static foreach(type; typel.keys)
{
mixin(typel[type] ~ " ret"d ~ type ~ ";");
I am currently trying to set up for myself a personal dub
registry, and I have MongoDB installed. Yet, when I run `dub
run` in the repo directory, I get the following error message:
```
vibe.db.mongo.connection.MongoAuthException@C:\Users\User\AppData\Local\dub\packages\vibe-d-0.9.4\vibe-d\mon
On Wednesday, 10 August 2022 at 15:50:45 UTC, Steven
Schveighoffer wrote:
On 8/10/22 11:26 AM, Ruby The Roobster wrote:
[SNIP]
A related bug: https://issues.dlang.org/show_bug.cgi?id=23140
-Steve
Funnily enough, I came across this when trying to fix that same
bug.
On Wednesday, 10 August 2022 at 15:19:41 UTC, Ruby The Roobster
wrote:
Take the following code:
```d
void main()
{
shared class C { bool opEquals(const(shared(C)) rhs) const
shared { return true;}}
const(C) c = new C();
const(C)[] a = [c];
const(C)[] b = [c];
assert(a[0] =
Take the following code:
```d
void main()
{
shared class C { bool opEquals(const(shared(C)) rhs) const
shared { return true;}}
const(C) c = new C();
const(C)[] a = [c];
const(C)[] b = [c];
assert(a[0] == b[0]);
}
```
This code (supposedly) checks whether ```a``` and ```b``
On Saturday, 6 August 2022 at 13:20:19 UTC, Sergey wrote:
On Thursday, 4 August 2022 at 13:01:30 UTC, Ruby The Roobster
wrote:
Is there any implementation in phobos of something similar to
BigInt but for non-integers as well? If there isn't is there
a dub package that does this, and if so, whi
On Friday, 5 August 2022 at 17:02:48 UTC, Ruby The Roobster wrote:
On Friday, 5 August 2022 at 16:58:25 UTC, Ruby The Roobster
wrote:
On Friday, 5 August 2022 at 15:07:18 UTC, H. S. Teoh wrote:
[SNIP]
In other words, you're trying to construct a BigInt with a
value of 10^18030 (a number with 18
On Friday, 5 August 2022 at 16:58:25 UTC, Ruby The Roobster wrote:
On Friday, 5 August 2022 at 15:07:18 UTC, H. S. Teoh wrote:
[SNIP]
In other words, you're trying to construct a BigInt with a
value of 10^18030 (a number with 18030 digits) and wondering
why the computer is taking forever to com
On Friday, 5 August 2022 at 15:07:18 UTC, H. S. Teoh wrote:
[SNIP]
In other words, you're trying to construct a BigInt with a
value of 10^18030 (a number with 18030 digits) and wondering
why the computer is taking forever to compute the value. :-D
[SNIP]
T
I have no idea how the program genera
On Friday, 5 August 2022 at 14:11:10 UTC, frame wrote:
On Friday, 5 August 2022 at 14:03:36 UTC, Ruby The Roobster
wrote:
Also, what about division and exponentiation. You can't just
forward them to BigInt and get a good result, BigInt will just
round to an integer for these two.
There are
On Friday, 5 August 2022 at 14:11:09 UTC, H. S. Teoh wrote:
On Fri, Aug 05, 2022 at 01:56:40PM +, Ruby The Roobster via
Digitalmars-d-learn wrote: [...]
public import dutils.math.core;
Is the imported module available anywhere? I'm trying to run
your code sample to determine w
On Friday, 5 August 2022 at 14:00:32 UTC, frame wrote:
On Thursday, 4 August 2022 at 13:01:30 UTC, Ruby The Roobster
wrote:
Is there any implementation in phobos of something similar to
BigInt but for non-integers as well? If there isn't is there
a dub package that does this, and if so, which
My code (as seen below) is failing due to a single line.
That line is:
```d
this.ival += (this.val * rhs.ival);
```
I kid you not, this is the reason why running unittests results
in a program that just hangs. And no, replacing unittest with
void main() doesn't fix the problem.
```d
module
On Friday, 5 August 2022 at 01:51:21 UTC, Ruby The Roobster wrote:
On Friday, 5 August 2022 at 01:47:07 UTC, Ruby The Roobster
wrote:
On Friday, 5 August 2022 at 01:42:23 UTC, jfondren wrote:
On Friday, 5 August 2022 at 01:38:48 UTC, jfondren wrote:
Here's a complete example that passes tests:
On Friday, 5 August 2022 at 01:47:07 UTC, Ruby The Roobster wrote:
On Friday, 5 August 2022 at 01:42:23 UTC, jfondren wrote:
On Friday, 5 August 2022 at 01:38:48 UTC, jfondren wrote:
Here's a complete example that passes tests:
```d
struct S {
int n;
void opOpAssign(string op)(S rhs) i
On Friday, 5 August 2022 at 01:42:23 UTC, jfondren wrote:
On Friday, 5 August 2022 at 01:38:48 UTC, jfondren wrote:
Here's a complete example that passes tests:
```d
struct S {
int n;
void opOpAssign(string op)(S rhs) if (op == "/") {
n++;
}
}
unittest {
auto a = S(1),
On Friday, 5 August 2022 at 01:23:40 UTC, Ruby The Roobster wrote:
[SNIP]
Any function other than an operator overload seems to work fine.
Also, this isn't mentioned in the spec.
Additional Information:
Fails for both DMD and LDC on Windows x86_64 for dmd v2.100.1
How do I get unittests to actually execute operator overloads?
E.g.:
```d
struct Struct
{
void opOpAssign(string op)(Struct rhs) //Assume that the
operator `/=` is implemented here
{
//...
}
}
unittest
{
Struct a = Struct(1);
Struct b = Struct(2);
a /= b;
as
Is there any implementation in phobos of something similar to
BigInt but for non-integers as well? If there isn't is there a
dub package that does this, and if so, which one?
On Thursday, 4 August 2022 at 01:32:15 UTC, Salih Dincer wrote:
I guess I wrote the following anything like that you want.
```d
void main()
{
import std.bigint,
std.string : representation;
BigInt i = 1001;
auto val = i.to!(dchar[]);
assert(val.representation == [49, 48, 48, 4
On Thursday, 4 August 2022 at 01:05:31 UTC, H. S. Teoh wrote:
Don't call .toString directly. Instead, use std.format.format:
```d
import std;
void main() {
auto x = BigInt("123123123123123123123123123123123123");
string s = format("%s", x); // this gives you the string
representation
How exactly can one store the string representation of a BigInt?
The seemingly obvious
```d
//...
dchar[] ret; //dchar[] is necessary for my project
//Assume that val is a BigInt with a value set earlier:
val.toString(ret, "%d");
//...
```
doesn't work. I am using x86_64 windows with -m64, an
On Wednesday, 3 August 2022 at 19:11:51 UTC, pascal111 wrote:
On Wednesday, 3 August 2022 at 18:53:35 UTC, jfondren wrote:
On Wednesday, 3 August 2022 at 18:33:37 UTC, pascal111 wrote:
I changed it to "x=notfunny(x);" and has the same result.
Now you are changing the value of the temporary lo
On Wednesday, 3 August 2022 at 13:00:05 UTC, Paul Backus wrote:
On Wednesday, 3 August 2022 at 12:50:17 UTC, Ruby The Roobster
wrote:
Any way to 'cast away' shared for an unknown type T?
There's actually an `Unshared` template for this in
`std.traits`, but for some reason it's `private`, so y
Any way to 'cast away' shared for an unknown type T?
On Saturday, 2 July 2022 at 20:43:41 UTC, Vinod KC wrote:
On Saturday, 2 July 2022 at 14:32:11 UTC, apz28 wrote:
dmd -of=dimedll.dll dimedll.d dimedll.def
dmd dime.d dimedll.di
Thanks for the reply. Well, I am sorry to say that your
suggestions resulted in failure.
First of all, when I used
The solution is to remove the extern declaration. That does it
for me, and it prints the expected output. No need for a .def
file, unless you are using optlink as your linker (which, as a
matter of principle, you should use lld or ld instead.)
Is there any way to define variables in an outer scope from an inner
scope? I was thinking
```d
void main()
{
int .y = 3;
}
```
would work, but it doesn't.
On 6/19/2022 11:55 AM, Paul Backus wrote:
On Sunday, 19 June 2022 at 15:34:48 UTC, Ruby The Roobster wrote:
On 6/19/2022 11:19 AM, Paul Backus wrote:
On Sunday, 19 June 2022 at 14:51:26 UTC, Ruby The Roobster wrote:
Is it possible to make a module constructor run at compile-time? If
so, how?
On 6/19/2022 11:19 AM, Paul Backus wrote:
On Sunday, 19 June 2022 at 14:51:26 UTC, Ruby The Roobster wrote:
Is it possible to make a module constructor run at compile-time? If
so, how?
No, it's not.
What are you trying to accomplish that lead you to ask this question?
There is probably a di
Is it possible to make a module constructor run at compile-time?
If so, how?
On Thursday, 2 June 2022 at 01:29:39 UTC, Ruby The Roobster wrote:
On Thursday, 2 June 2022 at 01:00:57 UTC, Ali Çehreli wrote:
On 6/1/22 17:36, Ruby The Roobster wrote:
> A stripped down version of some code I have:
Not much experience here but I made two changes:
1) Added 'shared':
>
On Thursday, 2 June 2022 at 01:00:57 UTC, Ali Çehreli wrote:
On 6/1/22 17:36, Ruby The Roobster wrote:
> A stripped down version of some code I have:
Not much experience here but I made two changes:
1) Added 'shared':
> this(Complex!real num = Complex!real(0,0)) shared
> {
>
A stripped down version of some code I have:
```d
public import std.complex;
public interface Mtype
{
// ...
}
public class Number : Mtype
{
public:
this(Complex!real num = Complex!real(0,0))
{
this.num = num;
}
this(shared Complex!real num =
On Saturday, 7 May 2022 at 00:48:20 UTC, Ruby The Roobster wrote:
Define an interface that has a function that returns an object
of the same type:
..
Nevermind. I was being stupid and made a naming error.
Define an interface that has a function that returns an object of
the same type:
```d
interface I
{
I foo();
}
```
Now define a class that inherits that interface:
```d
class M : I
{
this(int i)
{
this.i = i;
}
M foo()
{
return new M(42);
}
int i
Some code I have:
```d
alias Operator = dstring function(dstring input);
//List of all operations.
package Operator[dstring] opList;
//List of all functions.
package dstring[dstring] funcList;
//Functions that may not be deleted.
package dstring[dstring] noTouch;
//Initialize the basic arithm
On Saturday, 20 November 2021 at 01:01:05 UTC, rikki cattermole
wrote:
Don't use ~> for branches.
...
Thank you very much. I edited the dub.json, and that fixed the
problem(anyways, there is no longer a "testing" branch, so that
would have also been an issue.)
On Friday, 12 November 2021 at 21:22:32 UTC, Ruby The Roobster
wrote:
On Thursday, 11 November 2021 at 01:57:10 UTC, rikki cattermole
wrote:
On 11/11/2021 2:13 PM, Ruby The Roobster wrote:
Branch ~master: Invalid SemVer format: testing.0.0
Branch ~testing: Invalid SemVer format: testing.0.0
Ve
On Thursday, 11 November 2021 at 01:57:10 UTC, rikki cattermole
wrote:
On 11/11/2021 2:13 PM, Ruby The Roobster wrote:
Branch ~master: Invalid SemVer format: testing.0.0
Branch ~testing: Invalid SemVer format: testing.0.0
Version 0.1.2: Invalid SemVer format: testing.0.0
testing is a branch.
# Dub says that there is an invalid semVer format, but I don't
see how.
[Relevant Package:](https://code.dlang.org/packages/dutils)
Recently, I added a new tag: v0.1.2 to the github repo, as well
as v0.1.2-rc.1(this was later removed.) Now whenever updating the
package, dub gives me this:
B
On Friday, 29 October 2021 at 23:32:38 UTC, Steven Schveighoffer
wrote:
On Friday, 29 October 2021 at 22:02:53 UTC, Ruby The Roobster
wrote:
I am currently writing a test program for a collision
function, that involves multithreading so I can simultaneously
check for collisions and move a skele
I am currently writing a test program for a collision function,
that involves multithreading so I can simultaneously check for
collisions and move a skeleton at the same time. Because of
this, I had to use ```shared``` objects. The specific objects I
was using were declared in a file called "
On Friday, 22 October 2021 at 21:57:02 UTC, Ruby The Roobster
wrote:
On Friday, 22 October 2021 at 21:21:41 UTC, jfondren wrote:
On Friday, 22 October 2021 at 19:56:37 UTC, Ruby The Roobster
wrote:
I have a simple vibe-d project built with dub. Running the
command, dub build --force returns th
On Friday, 22 October 2021 at 21:21:41 UTC, jfondren wrote:
On Friday, 22 October 2021 at 19:56:37 UTC, Ruby The Roobster
wrote:
I have a simple vibe-d project built with dub. Running the
command, dub build --force returns the following output:
I'd start by running `dub -v build --force` inst
I have a simple vibe-d project built with dub. Running the
command, dub build --force returns the following output:
Performing "debug" build using
E:\Programs\D\dmd2\windows\bin\dmd.exe for x86_64.
mir-linux-kernel 1.0.1: building configuration "library"...
taggedalgebraic 0.11.22: building c
So, I have the following two files:
skeleton.d:
```d
/*skeleton.d by Ruby The Roobster*/
/*Version 1.0 Release*/
/*Module for representing skeletons in the D Programming Language
2.0*/
/*This program is free software: you can redistribute it and/or
modify
it under the terms of the GNU General P
On Thursday, 23 September 2021 at 00:17:49 UTC, jfondren wrote:
On Thursday, 23 September 2021 at 00:06:42 UTC, Ruby The
Roobster wrote:
So, I have the following function:
```d
writeln(tempcolor); //For this matter, the program
correctly reports tempcolor as 1...
for(ubyte j = 0;j <
So, I have the following function:
```d
public Sprite ReadSpriteFromFile(immutable(char)[] filename) {
//Reads a sprite in my made up .spr format(trash, why does this
even exist)
ubyte[] ftext;
Color[] colors;
Point[][] points;
im
On Saturday, 21 August 2021 at 06:08:17 UTC, evilrat wrote:
First parameter for CreateWindow should be window class string
that you used in
wndclass.lpszClassName = appName.toUTF16z;
Fix:
wndclass.lpszClassName = "Test"; //May need casting...
On Saturday, 21 August 2021 at 23:50:08 UTC, Ruby The Roobster
wrote:
On Saturday, 21 August 2021 at 06:08:17 UTC, evilrat wrote:
First parameter for CreateWindow should be window class string
that you used in
wndclass.lpszClassName = appName.toUTF16z;
Fix:
wndclass.lpszClassName = "Test";
On Friday, 20 August 2021 at 05:22:20 UTC, nov wrote:
On Friday, 20 August 2021 at 04:27:34 UTC, Jesse Phillips wrote:
For me, this code generates the Message Box. Does this happen
for you?
no errors
https://run.dlang.io/is/4tlm3p
```D
void main() {
try {
import std.stdio: File;
On Thursday, 19 August 2021 at 03:25:31 UTC, Jesse Phillips wrote:
tell me what went wrong. I am using DMD 2.097.2
This is an error message you'll get from Windows if the file is
locked (open by another application).
Odd. This works if I use a console application. It also works if
I use C s
On Wednesday, 18 August 2021 at 17:54:47 UTC, Paul Backus wrote:
On Wednesday, 18 August 2021 at 17:42:53 UTC, Ruby The Roobster
wrote:
Output(Given to me by a message box that display's
Throwable.msg in it's body):
Access Violation
Is this a bug, or me being stupid? If it's the latte
On Wednesday, 18 August 2021 at 17:54:47 UTC, Paul Backus wrote:
On Wednesday, 18 August 2021 at 17:42:53 UTC, Ruby The Roobster
wrote:
Output(Given to me by a message box that display's
Throwable.msg in it's body):
Access Violation
Is this a bug, or me being stupid? If it's the latte
All I did was try to access a file with a self-made library.
It didn't work. I tried again directly from the main file. This
is the code:
```d
File file =
File("E:\\Users\\User\\Desktop\\dutils\\test.spr","r"); //This
file exists on my system, so it should work...
file.close();
`
On Friday, 13 August 2021 at 21:10:38 UTC, Steven Schveighoffer
wrote:
On 8/13/21 3:59 PM, Mike Parker wrote:
On Friday, 13 August 2021 at 16:18:06 UTC, Ruby The Roobster
wrote:
...
...
...
Well, subtracting the length doesn't do much, you aren't
actually accessing the array block, you are
On Friday, 13 August 2021 at 19:59:46 UTC, Mike Parker wrote:
You aren't supposed to be manipulating GC-managed memory via
class destructors. You can not rely on that memory being valid
at the time that it's accessed in the destructor---the object
may already have been destroyed. Nondeterminist
On Friday, 13 August 2021 at 03:05:22 UTC, Mike Parker wrote:
On Friday, 13 August 2021 at 00:30:59 UTC, Ruby The Roobster
wrote:
When I run the program and close the window, the program still
runs in background mode. I don't know why this happens nor
how to fix it. Does anybody know what
On Friday, 13 August 2021 at 03:05:22 UTC, Mike Parker wrote:
On Friday, 13 August 2021 at 00:30:59 UTC, Ruby The Roobster
wrote:
When I run the program and close the window, the program still
runs in background mode. I don't know why this happens nor
how to fix it. Does anybody know what
On Friday, 13 August 2021 at 03:05:22 UTC, Mike Parker wrote:
On Friday, 13 August 2021 at 00:30:59 UTC, Ruby The Roobster
wrote:
When I run the program and close the window, the program still
runs in background mode. I don't know why this happens nor
how to fix it. Does anybody know what
1 - 100 of 137 matches
Mail list logo