On Sunday, 1 May 2022 at 12:39:08 UTC, Elfstone wrote:
Great, I'm using the constraint, until it's fixed.
Will it be fixed though? The DIP that Tejas linked is from
2020!!!
The DIP was postponed. I can contact the author to see if he
intends to pick it up again. If not, anyone interested
On Thursday, 28 April 2022 at 11:35:46 UTC, Mike Parker wrote:
go through the same system APIs. For example, on Windows you
can use two calls to `GetSystemMetrics` (one for the width, one
for the height).
(https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getsystemmetrics)
On Thursday, 28 April 2022 at 11:22:15 UTC, Alexander Zhirov
wrote:
Are there any methods to get the screen resolution?
On C/C++ from under X11, it is not possible to do this on the
command line via SSH, since the display is not defined. And is
it possible to do this somehow by means of D,
On Monday, 25 April 2022 at 08:54:52 UTC, Chris Katko wrote:
D
struct pair
{
float x,y;
}
alias sPair = Typedef!pair; // pair of xy in screen space
coordinates
alias vPair = Typedef!pair; // pair of xy in viewport space
coordinates
//etc
How do you initialize a typedef'd struct?
``d
On Saturday, 23 April 2022 at 05:01:51 UTC, Alain De Vos wrote:
On Saturday, 23 April 2022 at 04:52:39 UTC, Alain De Vos wrote:
On Saturday, 23 April 2022 at 03:41:17 UTC, Alain De Vos wrote:
I wrote a simple test program:
```
import std.stdio:writefln;
[...]
BBB: is probably the
On Saturday, 23 April 2022 at 03:41:17 UTC, Alain De Vos wrote:
int [] GLV=[1,2];
int [2] GLF=[1,2];
static int [] GSLV=[1,2];
static int [2] GSLF=[1,2];
FYI, `static` has no effect at module scope.
On Tuesday, 19 April 2022 at 08:58:02 UTC, bauss wrote:
On Monday, 18 April 2022 at 13:41:04 UTC, Mike Parker wrote:
On Monday, 18 April 2022 at 05:27:32 UTC, Danny Arends wrote:
Any ideas how to get into contact/fix this issue ?
I've emailed Sönke and pointed him to this thread.
Wouldn't
On Monday, 18 April 2022 at 05:27:32 UTC, Danny Arends wrote:
Any ideas how to get into contact/fix this issue ?
I've emailed Sönke and pointed him to this thread.
On Thursday, 14 April 2022 at 08:55:25 UTC, Chris Katko wrote:
I imagine this is a really odd edge case but it's piqued my
interest.
Consider this:
```d
void main() {
void foo() { initRuntimeState(i); }
foo();
if(!modifyRutimeState()) return;
int i = getRandomValue();
i =
On Thursday, 7 April 2022 at 07:24:03 UTC, Johann wrote:
Hi all,
anybody knows if there are functions (preferably) in Phobos,
that translate from unicode to other encodings and vice versa?
Johann
https://dlang.org/phobos/std_encoding.html
On Tuesday, 5 April 2022 at 09:26:54 UTC, realhet wrote:
Hello,
I have all my D packages in the c:\D\libs\ directory.
I added this path to the PropertyPages/Compiler/Additional
Import Paths field.
In the project source file I imported a module from my package
using "import het.utils;"
Also
On Tuesday, 22 March 2022 at 14:44:59 UTC, Marcone wrote:
Why is dmd unable to import modules installed by dub using the
import command like it does with the Phobos library? He can't
send these modules to Linker? Needing to be passed to dmd via
command line. I think it could be all automatic.
On Wednesday, 16 March 2022 at 07:27:06 UTC, test wrote:
```c
struct Test {
int32_t a;
}
struct Test2 {
int32_t a;
Test arr[];
}
```
I need static const init Test2, then pass it to c library
late(third library, can not change the type def).
Any time you see a '[]' in C, the
On Wednesday, 2 March 2022 at 16:38:58 UTC, M wrote:
There doesn't seem to be any docs on how to actually create
packages.
Is there a description anywhere?
In case you're talking about a language-level package and not a
dub package, just create a directory in your source tree with the
name
On Tuesday, 1 March 2022 at 13:15:09 UTC, meta wrote:
enum Color
{ GRAY }
void setColor(Color color);
setColor(GRAY);
Then that defeats the purpose of having named enums.
On Tuesday, 1 March 2022 at 09:10:46 UTC, Vijay Nayar wrote:
I'm a bit surprised at this behavior though. Do you happen to
know why it is considered bad to take into account the
overloads of a super-class when resolving a call in a
derived-class?
https://dlang.org/articles/hijack.html
On Tuesday, 1 March 2022 at 07:16:11 UTC, bauss wrote:
Right now if you want to add an additional cast then you have
to implement ALL the default behaviors and then add your custom
cast.
It's two template functions like the OP used: one for T to catch
everything, and one specialization.
On Tuesday, 1 March 2022 at 04:59:49 UTC, Mike Parker wrote:
You could also specialize on `void*`, as that's the type that
was failing to compile
I meant "instead", not also.
On Tuesday, 1 March 2022 at 04:29:56 UTC, cc wrote:
```d
struct A {}
class B {
A opCast(T : A)() {
return A();
}
}
void main() {
auto b = new B();
destroy(b);
}
```
fails with
```
dmd2\windows\bin\..\..\src\druntime\import\object.d(4209):
Error:
On Tuesday, 1 March 2022 at 02:42:52 UTC, Steven Schveighoffer
wrote:
On 2/28/22 6:48 AM, Salih Dincer wrote:
In general, the raylib enumerations are overly verbose for D,
e.g. `KeyboardKey.KEY_X`, instead of just `KeyboardKey.X`. I'd
love to provide "better enums".
In Derelict, I
On Monday, 28 February 2022 at 17:44:57 UTC, Matheus wrote:
On Monday, 28 February 2022 at 02:31:57 UTC, Mike Parker wrote:
...
Hey Parker, I think my IP still under surveillance, everytime I
post I get:
"Your message has been saved, and will be posted after being
approved by a
On Monday, 28 February 2022 at 11:48:59 UTC, Salih Dincer wrote:
Hi All,
Is there a namespace I should implement in Raylib? For example,
I cannot compile without writing Colors at the beginning of the
colors: ```Colors.GRAY```
SDB@79
Assuming you mean the raylib-d binding, it implements
On Monday, 28 February 2022 at 01:51:52 UTC, meta wrote:
Is the source of 'run.dlang.io' available somewhere?
The link to the github repository is at the top of the
run.dlang.io page:
https://github.com/dlang-tour/core
Issues should be reported there.
On Monday, 21 February 2022 at 11:07:55 UTC, Basile B. wrote:
Yeah there must be another one then. Something actionnable is
the documentation.
This has nothing to do with which exceptions types a function
throws. The compiler doesn't dig into that. You have to catch
`Exception`.
```D
On Monday, 21 February 2022 at 11:11:28 UTC, partypooper wrote:
So with such behavior there is no reason at all to make make
function nothrow, if it uses throw functions in its body?
I'm not sure what you mean. If a function throws an exception, it
can't be nothrow.
And as much as I
On Monday, 21 February 2022 at 10:49:13 UTC, partypooper wrote:
Do I completely not understand what is `nothrow` or why I can't
make function nothrow with just catching StdioException?
D does not have checked exceptions like Java, so the compiler
doesn't have anyway to verify that any
On Sunday, 13 February 2022 at 00:16:02 UTC, LorenDB wrote:
Is there a way to download tour.dlang.org, the D spec, and/or
the Phobos spec as an offline HTML site? I like the ability of
cppreference.com to be saved as an offline HTML archive and I'd
like to have that for D as well.
If you’ve
On Sunday, 19 December 2021 at 03:27:50 UTC, Tejas wrote:
Oh wow, the executable gets named `stuff` if that's the first
file passed... always thought it would name it the same name as
that file which contained `main`
If the name of the file with `main` were used, you'd have to have
a
On Saturday, 18 December 2021 at 22:31:38 UTC, bachmeier wrote:
I've been trying to get the stb header library to compile.
There's a single remaining failure:
```
typedef struct
{
unsigned char c[4];
} stb_easy_font_color;
stb_easy_font_color c = { 255,255,255,255 }; // use structure
On Monday, 13 December 2021 at 22:06:45 UTC, chopchop wrote:
If I remove the ref, it works as expected, that is to say I can
give a derived class as parameter. I have an idea why it does
not work, but I think a c++ reference would work, ie incr(A&
console) would accept a B as parameter. What
On Thursday, 2 December 2021 at 15:03:47 UTC, D Lark wrote:
Because it does not seem like that from the tone of responses I
have gotten: I did my due diligence, I believe, before posting
my original reply to the old question. I had looked at the docs
and also searched the forum. There is no
On Sunday, 28 November 2021 at 22:45:29 UTC, Willem wrote:
// load sdl
string uuid = randomUUID().toString();
string filename = format("SDL2-%s.dll", uuid);
string depacked = buildPath(tempDir(), filename);
std.file.write(depacked, sdlBytes);
DerelictSDL2.load(depacked);
On Tuesday, 16 November 2021 at 21:14:50 UTC, rempas wrote:
Let's say that I have the following function:
```
void add(T)(T val, T val2) { return val + val2; } // Classic
example, lol
```
Now let's say that I call the function passing an `int`
parameter. The function will get built with an
On Saturday, 13 November 2021 at 22:52:55 UTC, pascal111 wrote:
When I'm searching for "toUpper" and "toLower" functions that
string type uses, I confused when I reached the module
"std.string". In the first section of its page
"https://dlang.org/phobos/std_string.html; I didn't found
On Tuesday, 2 November 2021 at 16:35:40 UTC, pascal111 wrote:
"input..." seems nice, where can I get more information about
it?
"Typesafe variadic functions"
https://dlang.org/spec/function.html#typesafe_variadic_functions
On Friday, 22 October 2021 at 05:54:21 UTC, Kirill wrote:
I am not a compiler expert, but I genuinely would like to know
why we have Dmain.
I've been looking at the generated assembly code recently and
noticed the _Dmain function. I didn't notice it before. Then
there is main, where Dmain is
On Tuesday, 12 October 2021 at 15:55:40 UTC, Johann Lermer wrote:
Thanks, understood. But isn't this a deficiency in the library
that should be fixed?
The problem extends to more than just `toHash`. Take a look at
this DConf 2019 presentation by Eduard Staniloiu on ProtoObject
(as proposed
On Monday, 11 October 2021 at 10:53:15 UTC, anon wrote:
S makeS(int x)
{
return S(x); // no destructor called here.
}
void main()
{
foo(S(1)); // no destructor called for this rvalue
auto s = makeS(1);
// destructor for s called here.
foo(makeS(1)); // only one destructor called
On Sunday, 10 October 2021 at 12:56:30 UTC, Some Guy wrote:
But I did not understand what you meant by "enums hold values,
not types". Aren't types values at compile time?
Types can be template arguments, if that's what you mean, but
they aren't values.
On Thursday, 30 September 2021 at 22:30:30 UTC, jfondren wrote:
3. dynamic linking (option 2), performed arbitrarily at
runtime, by your program. If linking fails, you can do whatever
you want about that.
That's actually "dynamic loading".
https://en.wikipedia.org/wiki/Dynamic_loading
On Wednesday, 29 September 2021 at 04:24:13 UTC, Chris Piker
wrote:
Hi D
I'm to give a presentation to a combined NASA/ESA group in a
few hours and would like to include a copy of the D "rocket"
logo when mentioning new server side tools that I've written in
D. Is such use of this
On Tuesday, 28 September 2021 at 16:30:09 UTC, Eric_DD wrote:
I am trying to use a newer version of Assimp.
I have found a assimp-vc140-mt.dll (v3.3.1) which I renamed to
assimp.dll
When running my executable it throws a
derelict.util.exception.SharedLibLoadException:
"Failed to load one
On Monday, 27 September 2021 at 17:38:29 UTC, james.p.leblanc
wrote:
Dear D-ers,
I have trouble understanding "module imports" vs. "module
compilations".
A module is implemented in a source file. Though we often use the
term "module" to refer to both, it may help to think in terms of
On Tuesday, 21 September 2021 at 16:14:52 UTC, Chris_D wrote:
Thanks for the replies.
jfondren: Sorry, but I am talking about documentation. For me,
online web pages don't qualify; they are in the cloud, unreal,
with no substance. Does anyone really read 300 pages online,
in a web browser?
On Friday, 10 September 2021 at 07:50:29 UTC, tastyminerals wrote:
As for the dxml, I believe adding a small quick start example
would be very beneficial for the newcomers. Especially, ppl
like me who are not aware of the XML parser types and just need
to extract text from an XML file.
On Friday, 10 September 2021 at 11:20:10 UTC, eugene wrote:
same picture with gdc 8.4.0 - one thread, no pthread_create()
behind the scenes.
GDC is stuck on a much older version of D. Iain has backported
some bugfixes and optimizations, but featurewise it's mostly D
2.076. This is because
On Monday, 6 September 2021 at 13:23:21 UTC, Steven Schveighoffer
wrote:
I will note though, that some people use the mechanism for
links that puts the link at the bottom of the post, and this
can be annoying when you reply, if you don't include the link
definition, it doesn't render
On Sunday, 5 September 2021 at 23:24:16 UTC, someone wrote:
Slightly off-topic but ... while-we-are-the-subject:
I usually post with markdown enabled and enclose code within
```d
Sometimes, I notice that replies to my posts came without
markdown, and until now, I assumed not everyone likes
On Saturday, 4 September 2021 at 08:19:53 UTC, JG wrote:
As a small comment regarding dub. I can't help wondering if it
really the best idea for each configuration to include
everything by default and then have to exclude things? This
means that when you add another configuration and source
On Tuesday, 31 August 2021 at 06:15:07 UTC, jfondren wrote:
On Tuesday, 31 August 2021 at 05:42:22 UTC, ag0aep6g wrote:
On 31.08.21 02:50, Mike Parker wrote:
Member functions marked as immutable can be called on both
mutable and immutable instances.
That's not true.
Demonstrated:
Well
On Monday, 30 August 2021 at 23:27:07 UTC, Merlin Diavova wrote:
```
After playing around the above works, Great! However I have
some questions
First, why do the interfaces have to be defined as `immutable
interface`?
The interfaces cannot be changed at runtime or instantiated.
It isn't
On Monday, 30 August 2021 at 20:26:46 UTC, Benoît Dubreuil wrote:
My question is:
In the source file `dummy.dummy.d`, why the first labelled
attributes `@safe` and `@nogc` have no effect inside the
struct's scope? In other words, why do I need to repeat
labelled attributes statements in
On Sunday, 29 August 2021 at 11:09:28 UTC, Steven Schveighoffer
wrote:
This is exactly the opposite!
Sorry about that. I can't believe I mixed those up.
On Sunday, 29 August 2021 at 08:55:44 UTC, realhet wrote:
Is it safe, or do I have to take a snapsot of the keys range
like this? ->
You shouldn't remove anything when iterating over `.keys` or
`.values`. Use `.byKey` and `.byValue` instead to get ranges that
are independent of the aa.
On Friday, 27 August 2021 at 14:46:56 UTC, Ki Rill wrote:
On Friday, 27 August 2021 at 13:54:18 UTC, Steven Schveighoffer
wrote:
[...]
How do I tell DUB where to look for `raylibdll.lib` and
`raylib.dll`? Via `lflags` section? What if I put them in a
different folder instead of the
On Friday, 27 August 2021 at 13:41:56 UTC, Ki Rill wrote:
I have downloaded the pre-compiled binaries from the official
[Raylib ](https://github.com/raysan5/raylib/releases/tag/3.7.0)
repo.
I'm not using Visual Studio. Only dub and a text editor.
But assuming you are on a 64-bit system,
On Friday, 27 August 2021 at 13:21:04 UTC, Ki Rill wrote:
I have a Raylib project on Windows using DUB. I've added
raylib-d via `dub add`. But what I can't figure out is how to
tell DUB to link against raylib library.
I have the following project structure:
```
-> source
---> app.d
->
On Sunday, 22 August 2021 at 12:22:41 UTC, Виталий Фадеев wrote:
https://forum.dlang.org/post/s5pvtq$2q83$1...@digitalmars.com
On Wednesday, 21 April 2021 at 19:54:35 UTC, rikki cattermole
wrote:
On 22/04/2021 7:51 AM, Alain De Vos wrote:
import bindc.opengl;
bindbc
bindbc-opengl
On Tuesday, 17 August 2021 at 09:59:53 UTC, Rekel wrote:
time in the future. Even bugs don't seem to get fixed in any
timely manner (Not meant as an insult, just being realistic :/).
We do have a paid Issue/Pull-Request manager now (Razvan Nitu),
and he's prioritizing issues for strike teams
On Tuesday, 17 August 2021 at 09:59:53 UTC, Rekel wrote:
When using implicit function templates, identical
specialization yield different results.
Example:
```d
template TFoo(T){ void foo(){writeln("1");} } // #1
template TFoo(T : T[]) { void foo(){writeln("2");} } // #2
void
On Sunday, 15 August 2021 at 10:40:36 UTC, jfondren wrote:
Yeah, that's not possible. You either need the source or a set
of D interface files that declares all the symbols you need.
Meaning, it is possible. On Windows where I assume these .lib
files are:
I mentioned C libraries in an
On Sunday, 15 August 2021 at 10:12:17 UTC, Timofeyka wrote:
Thank you for your reply!
I wanted to link to my project another project without source
code.
Yeah, that's not possible. You either need the source or a set of
D interface files that declares all the symbols you need. The
compiler
On Sunday, 15 August 2021 at 09:49:39 UTC, Timofeyka wrote:
Hello!
I may have a very stupid question, but still.
How do I include a .lib library? How to use it in your code?
You don't import a .lib file. They are for the linker, not the
compiler. How you make use of it depends on what sort of
On Sunday, 15 August 2021 at 08:11:39 UTC, rempas wrote:
I mean that in C, we can assign a string literal into a `char*`
and also a `const char*` type without getting a compilation
error while in D, we can only assign it to a `const char*`
type. I suppose that's because of C doing explicit
On Saturday, 14 August 2021 at 03:47:05 UTC, Tejas wrote:
```d
import std;
auto abc(T)(auto ref T a, auto ref T b){
return a+b;
}
auto def(T)(auto ref T a, auto ref T b){
return a*b;
}
alias macro_1 = abc;
void main()
{
writeln(macro_1(15, 20));
alias macro_1 = def;// is
On Friday, 13 August 2021 at 21:36:35 UTC, Ruby The Roobster
wrote:
Thank you very much. The program runs successfully now.
You've got another potential issue you should be aware of. You've
name a member of your `Skeleton` as `init`. This may cause issues
at some point, as every type in
On Friday, 13 August 2021 at 21:10:38 UTC, Steven Schveighoffer
wrote:
Well, subtracting the length doesn't do much, you aren't
actually accessing the array block, you are just changing the
reference (which lives in thread-local storage). I kind of feel
like the whole entity table thing is
On Friday, 13 August 2021 at 16:18:06 UTC, Ruby The Roobster
wrote:
Context for this: I am creating a module of my own, and this
is a class contained in the module. You will notice that after
calling this class' constructor anywhere in a Win32 API
program, that the program doesn't close
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's going on?
frame beat me to it, but it may well be that
On Wednesday, 11 August 2021 at 09:38:13 UTC, tastyminerals wrote:
Hahaha, I fixed it by renaming the `my_script.d` to `app.d`. Oh
boy.
What you want is the `mainSourceFile` entry. From the dub
documentation, [under "Build Settings"][1]:
Determines the file that contains the main()
On Tuesday, 10 August 2021 at 19:03:06 UTC, Marcone wrote:
On Tuesday, 10 August 2021 at 19:01:42 UTC, Adam D Ruppe wrote:
On Tuesday, 10 August 2021 at 18:59:33 UTC, Marcone wrote:
Using -Lgdi32.lib -Luser32.lib? Same error.
The part after that:
If you want the Windows subsystem too, use
On Thursday, 5 August 2021 at 10:43:01 UTC, wjoe wrote:
Could you elaborate on ```version(assert)``` a bit more, please
? Like I compiled with ```-release, -g``` and without the 2
options but the ```assert``` branch was always taken. Could it
be that ```-unittest``` has something to do
On Thursday, 5 August 2021 at 09:18:08 UTC, wjoe wrote:
If it's to be determined whether or not the code is being
compiled in debug or release mode, i.e. e.g. the dmd
```-release``` or ```-g``` options, which version identifier is
supposed to be used ?
There's no ```release``` identifier and
On Tuesday, 3 August 2021 at 21:40:09 UTC, james.p.leblanc wrote:
I am getting linker errors with this stripped-down example:
---
**my_main.d:**
import std.stdio;
import std.complex;
import my_module;
void main(){
my_TYPE xxx;
On Tuesday, 3 August 2021 at 16:43:52 UTC, NonNull wrote:
how does it work for recursive types like a struct containing a
pointer to a struct of the same type
A struct `S` with a member of type `S*` is still just a struct
`S`. The pointer doesn't change anything about the type.
On Tuesday, 3 August 2021 at 16:43:52 UTC, NonNull wrote:
I'd like to understand how any D type is represented as a
string by the name mangling done by the compilers.
Does this always have the desirable property that different
types have different mangled names, so that a type is
faithfully
On Friday, 30 July 2021 at 08:38:24 UTC, dangbinghoo wrote:
but, where's these switch option documented? it seems it not
appears in dmd --help or man dmd, or online document
https://dlang.org/dmd-linux.html
That's what he meant by "hidden" switch. I don't know why it
isn't documented,
On Thursday, 29 July 2021 at 10:07:15 UTC, Ki wrote:
On Thursday, 29 July 2021 at 07:59:38 UTC, Ki wrote:
I tried to compile a new project with Raylib yesterday:
dub init => ... => dub add raylib-d.
My dub.json file does contain the "libs": ["raylib"] section,
so the compiler links against
On Sunday, 25 July 2021 at 17:38:23 UTC, someone wrote:
i.e. your AA initialization is copy-pasted into each use of
it, which means your program is rebuilding this AA at runtime
every time it comes up. You probably got to this point as a
bare `immutable structureLocations` errored out to the
On Sunday, 25 July 2021 at 00:15:30 UTC, Jim wrote:
But I think `destroy()` not being @nogc even though the
destructor is tagged @nogc is a bug, and it should be fixed.
Because it is problematic behaviour even if we limit the usage
of @nogc.
It's not a bug. The destructor being tagged has
On Saturday, 24 July 2021 at 09:45:01 UTC, Jim wrote:
In that case, what should we use to check functions called from
`main` are not using the garbage collector?
When compiling, you can pass -vgc to dmd and it will tell you
where GC allocations are possible.
Because it seems like we
On Friday, 23 July 2021 at 20:24:02 UTC, Jim wrote:
What is the problem here? Should I not call `destroy`? If so,
what should I call instead?
The problem is that you've marked main as `@nogc`, and `destroy`
is not `@nogc`. Remove the annotation from main and it will
compile.
On Wednesday, 21 July 2021 at 08:11:06 UTC, vit wrote:
Is it possible to call all shared static ctors in betterC?
```d
//-betterC
static immutable int i;
shared static this(){
i = 42;
}
extern(C) void main(){
assert(i != 42);
}
```
These rely on DRuntime, which is not linked in
On Tuesday, 20 July 2021 at 06:20:34 UTC, Tejas wrote:
Why isn't it working by default?
Initially, I was trying to create the spaceship operator of
C++, but we aren't allowed to create new operators, it seems.
Then I just wanted to verify whether we can even overload an
operator globally,
On Friday, 16 July 2021 at 17:14:12 UTC, Mike Parker wrote:
I haven't had occasion to make use of any serialization
libraries myself, but you can start here:
https://wiki.dlang.org/Serialization_Libraries
Also:
https://code.dlang.org/search?q=serialization
On Friday, 16 July 2021 at 16:54:18 UTC, Scotpip wrote:
Yup - I have it running now but the code does seem to be a bit
neglected and I'm seeing a depreciation warning too. I chose it
because it's much the most downloaded serialisation package and
is used in a couple of other popular packages.
On Friday, 16 July 2021 at 16:44:31 UTC, Scotpip wrote:
Again, if this helps anyone my current setup is to have a
single main() in app.d. I changed the main() in my sandboxes to
runSandbox(), and I import and run from app.d rather than
directly. Or with a couple of keystrokes I can switch to
On Friday, 16 July 2021 at 15:31:49 UTC, Scotpip wrote:
I'm completely stuck till I can get this fixed, so any help
would be very much appreciated!
I used the example from the readme at:
https://code.dlang.org/packages/msgpack-d
which I pasted into the generated `app.d`. And all the
On Wednesday, 14 July 2021 at 12:35:07 UTC, wjoe wrote:
On Wednesday, 14 July 2021 at 11:31:36 UTC, Tejas wrote:
``` {auto a = i[1] , ++i[1] , a} //note the , not the ;```
Sorry I can't provide something even more concrete.
Yes I saw that, and I suppose it would work just fine if it
were
On Tuesday, 13 July 2021 at 11:23:38 UTC, Scotpip wrote:
Mike - thanks for responding!
You say that there wasn't a Windows 64 bit release "for good
reason".
That sounds a bit ominous - I'd appreciate your insights into
what was behind this.
Nothing ominous. It was just because of the
On Tuesday, 13 July 2021 at 02:22:46 UTC, Mike Parker wrote:
On Tuesday, 13 July 2021 at 01:03:11 UTC, someone wrote:
Being *local* to ... ain't imply visibility too regardless
scope not being a visibility attribute ? I mean, scope is
restricting the variable to be leaked outside the
On Tuesday, 13 July 2021 at 01:03:11 UTC, someone wrote:
Being *local* to ... ain't imply visibility too regardless
scope not being a visibility attribute ? I mean, scope is
restricting the variable to be leaked outside the
function/whatever and to me it seems like restricted to be seen
On Monday, 12 July 2021 at 23:45:57 UTC, someone wrote:
Regarding -preview=dip1000 (and the explicit error description
that could have helped me a lot back then) : DMD man page says
the preview switch lists upcoming language features, so DIP1000
is something like a D proposal as I glanced
On Monday, 12 July 2021 at 23:57:37 UTC, Scotpip wrote:
Given that this will be the first encounter with the language
for many users, you might want to consider addressing this to
create a good first impression?
For a long time, the installer did not include 64-bit binaries on
Windows for
On Friday, 9 July 2021 at 07:21:06 UTC, rempas wrote:
When I execute it, I'm getting a range violation error. If I
try to set "len" to be the length of the "prompt" minus 1, then
it will work and it will print the "prompt" until the
questionmark. So I cannot find where the error is...
On Tuesday, 6 July 2021 at 13:27:43 UTC, Jack Applegame wrote:
And that's sad. It should happen for properties only.
Totally disagree. This is one of my favorite D features.
On Tuesday, 6 July 2021 at 11:35:14 UTC, BoQsc wrote:
I tried out .canFind method, and to test it I removed the
letter 'o' from the Alphabet.
Weirdly enough .canFind method still found 'o' letter among the
Alphabet.
https://run.dlang.io/is/2Fvenf
Looks like it has something to do with the
On Monday, 5 July 2021 at 14:30:11 UTC, Mike Parker wrote:
You never copy the contents of a dynamic array/slice. That only
comes into play with static arrays:
I should rephrase that. You aren't going to copy the contents of
an array/slice just by passing it to a function.
On Monday, 5 July 2021 at 13:34:50 UTC, Rekel wrote:
Ah, ref, thanks, I didn't know if that would work as I was
confused since arrays themselves are kind of already pointers.
Except they're not :-) Think of them as struct instances with
length and pointer fields. That's actually what they
On Monday, 5 July 2021 at 13:41:59 UTC, Rekel wrote:
I'm not sure if this is the place to talk about it, but on the
same topic it's a little strange to me neither the Dlang Tour
nor the arrays spec page mention removing elements. Even though
basically everyone is going to use it sooner or
101 - 200 of 1235 matches
Mail list logo