On Saturday, 11 June 2022 at 10:07:46 UTC, test123 wrote:
how to work this around.
```d
__gshared const TEST = import(`onlineapp.d`);
extern(C) void main(){
__gshared bin_ptr = TEST.ptr;
}
```
```sh
dmd2 -betterC -J. onlineapp.d
onlineapp.d(3): Error: cannot use non-constant CTFE
how to work this around.
```d
__gshared const TEST = import(`onlineapp.d`);
extern(C) void main(){
__gshared bin_ptr = TEST.ptr;
}
```
```sh
dmd2 -betterC -J. onlineapp.d
onlineapp.d(3): Error: cannot use non-constant CTFE pointer in an
initializer `cast(immutable(char)*)TEST`
```
Try to run clang with -v option and compare with gcc.
The detailed error is :
```
/usr/bin/clang test.o -o test -L/usr/local/lib -lphobos2-ldc
-ldruntime-ldc -Wl,--gc-sections -lexecinfo -lpthread -lm -m64
ld: error: undefined hidden symbol: __start___minfo
referenced by test.d
test.o:(ldc.register_dso)
```
Performed additional tests.
Compiling helloworld.d
```
export CC=gcc11 ; ldc2 helloworld.d
```
works fine.
Compiling helloworld.d
```
export CC=clang ; ldc2 helloworld.d
```
returns:
```
d: error: undefined hidden symbol: __start___minfo
referenced by test.d
test.o
On Sunday, 29 May 2022 at 01:35:23 UTC, frame wrote:
Is there a compiler switch to catch this kind of error?
```d
ulong v = 1;
writeln(v > -1);
```
IMHO the compiler should bail a warning if it sees a logic
comparison between signed and unsigned / different integer
sizes. There is 50% cha
On Monday, 30 May 2022 at 13:15:12 UTC, bauss wrote:
Good luck convincing Walter that this is a mistake :)
I don't think this is a matter of convincing or changing the
behavior, I think that a flag for this case (If not exist) should
be added as a warning.
A language where some people use t
On Monday, 30 May 2022 at 13:15:12 UTC, bauss wrote:
Good luck convincing Walter that this is a mistake :)
Well, I'm not talking about this is a mistake, just a C-thing I
think. I wouldn't even ask him about that since it's in the spec.
If I could I would just clone a DMD build, disable out
On Sunday, 29 May 2022 at 01:35:23 UTC, frame wrote:
Is there a compiler switch to catch this kind of error?
```d
ulong v = 1;
writeln(v > -1);
```
IMHO the compiler should bail a warning if it sees a logic
comparison between signed and unsigned / different integer
sizes. There is 50% cha
On Sunday, 29 May 2022 at 01:35:23 UTC, frame wrote:
Is there a compiler switch to catch this kind of error?
```d
ulong v = 1;
writeln(v > -1);
```
IMHO the compiler should bail a warning if it sees a logic
comparison between signed and unsigned / different integer
sizes. There is 50% cha
Is there a compiler switch to catch this kind of error?
```d
ulong v = 1;
writeln(v > -1);
```
IMHO the compiler should bail a warning if it sees a logic
comparison between signed and unsigned / different integer sizes.
There is 50% chance that a implicit conversion was not intended.
doesn't work. It compiles, but the program does not run
afterwards. I also tried to add -m32omf But in this case the
compilation error. How to solve this?
There is no support for OMF for x64, 64bit build is always
MS-COFF.
If you specify -m64 you will generate x64 MS-COFF files.
If you sp
On Friday, 20 May 2022 at 13:16:00 UTC, frame wrote:
On Thursday, 19 May 2022 at 20:20:49 UTC, Marcone wrote:
I am using a main() function.
I am compiling on Windows x86 32 bits.
I am using DMD 2.100.0
This error is only in version 2.100.0 of DMD.
Did you try 2.099 too? Because the default
On Friday, 20 May 2022 at 13:16:00 UTC, frame wrote:
On Thursday, 19 May 2022 at 20:20:49 UTC, Marcone wrote:
I am using a main() function.
I am compiling on Windows x86 32 bits.
I am using DMD 2.100.0
This error is only in version 2.100.0 of DMD.
Did you try 2.099 too? Because the default
On Thursday, 19 May 2022 at 20:20:49 UTC, Marcone wrote:
I am using a main() function.
I am compiling on Windows x86 32 bits.
I am using DMD 2.100.0
This error is only in version 2.100.0 of DMD.
Did you try 2.099 too? Because the default build mode for 32bit
was changed to MS-COFF and it
On Thursday, 19 May 2022 at 22:13:06 UTC, Adam Ruppe wrote:
On Thursday, 19 May 2022 at 21:41:50 UTC, Marcone wrote:
Are you using the `-L/entry:mainCRTStartup` or the
`L/entry:wmainCRTStartup` ?
-L/entry:mainCRTStartup
try the w one too. both doing the same result?
Both is doing the same
On Thursday, 19 May 2022 at 21:41:50 UTC, Marcone wrote:
Are you using the `-L/entry:mainCRTStartup` or the
`L/entry:wmainCRTStartup` ?
-L/entry:mainCRTStartup
try the w one too. both doing the same result?
On Thursday, 19 May 2022 at 20:33:34 UTC, Adam D Ruppe wrote:
On Thursday, 19 May 2022 at 20:20:49 UTC, Marcone wrote:
I am using a main() function.
I am compiling on Windows x86 32 bits.
I am using DMD 2.100.0
This error is only in version 2.100.0 of DMD.
Are you using the `-L
On Thursday, 19 May 2022 at 20:20:49 UTC, Marcone wrote:
I am using a main() function.
I am compiling on Windows x86 32 bits.
I am using DMD 2.100.0
This error is only in version 2.100.0 of DMD.
Are you using the `-L/entry:mainCRTStartup` or the
`L/entry:wmainCRTStartup` ?
splay.html#installation-instructions
I am using a main() function.
I am compiling on Windows x86 32 bits.
I am using DMD 2.100.0
This error is only in version 2.100.0 of DMD.
On Thursday, 19 May 2022 at 19:29:25 UTC, Marcone wrote:
Using -L/SUBSYSTEM:windows user32.lib
you using a main() function right?
Please note when compiling on Win64, you need to explicitly list
-Lgdi32.lib -Luser32.lib on the build command. If you want the
Windows subsystem too, use -L/subs
Using -L/SUBSYSTEM:windows user32.lib
Error:
lld-link: error: undefined symbol: _WinMain@16
referenced by
msvcrt120.lib(msvcrt_stub2.obj):(_WinMainCRTStartup)
Error: linker exited with status 1
On Wednesday, 18 May 2022 at 20:41:53 UTC, Gavin Gray wrote:
After upgrading to ubuntu 22.04, I get the linker error below
for a project that previously built successfully.
OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022)
LDC - the LLVM D compiler (1.27.1):
based on DMD
After upgrading to ubuntu 22.04, I get the linker error below for
a project that previously built successfully.
OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022)
LDC - the LLVM D compiler (1.27.1):
based on DMD v2.097.2 and LLVM 12.0.1
built with LDC - the LLVM D compiler
Bugs in the clang/llvm toolchain but not in the gcc toolchain ?
The following worked , and i don't know what is going on:
```
ldc2 --gcc=gcc11
```
The problem re-appeared and i have totally no idea what caused it.
ldc2 test.d
ld: error: undefined hidden symbol: __start___minfo
referenced by test.d
test.o:(ldc.register_dso)
ld: error: undefined hidden symbol: __stop___minfo
referenced by test.d
test.o
On Friday, 13 May 2022 at 19:48:04 UTC, Steven Schveighoffer
wrote:
On 5/13/22 3:46 PM, Steven Schveighoffer wrote:
What writeln? Your compile trace is missing the original call
line, and I would say probably more.
Looking at your last commit, I figured it out:
https://github.com/kerisy/arc
On 5/13/22 3:46 PM, Steven Schveighoffer wrote:
What writeln? Your compile trace is missing the original call line, and
I would say probably more.
Looking at your last commit, I figured it out:
https://github.com/kerisy/archttp/blob/545b3eb738261e92c88b4e4bb664b4fdfb206398/source/archttp/cod
s/nbuff-0.1.14/nbuff/source/nbuff/buffer.d(74,25):
Deprecation: `catch` statement without an exception specification is
deprecated
../../.dub/packages/nbuff-0.1.14/nbuff/source/nbuff/buffer.d(74,25):
use `catch(Throwable)` for old behavior
SSE: false
/opt/dmd/osx/bin/../../src/phobos/std/st
nbuff/buffer.d(74,25):
Deprecation: `catch` statement without an exception specification is deprecated
../../.dub/packages/nbuff-0.1.14/nbuff/source/nbuff/buffer.d(74,25):use
`catch(Throwable)` for old behavior
SSE: false
/opt/dmd/osx/bin/../../src/phobos/std/stdio.d(5190,5): Error:
variable `impl` c
ed by vibe.d
```
string MongoURL =
"mongodb://username:@cluster0-shard-00-01.gaetq.mongodb.net:27017";
auto client = connectMongoDB(MongoURL);
```
but am getting error [1] below.
Alternatively if I use the following path to the instance
```
string MongoURL =
On Saturday, 30 April 2022 at 14:29:56 UTC, notsteve wrote:
Hi,
I am trying to setup a simple webserver in D using vibe.d
(0.9.4) and want to use mongoDB as a database. To achieve this,
I've set up a mongoDB atlas instance with the following command
inside the standard app.d file created by v
//username:@cluster0-shard-00-01.gaetq.mongodb.net:27017";
auto client = connectMongoDB(MongoURL);
```
but am getting error [1] below.
Alternatively if I use the following path to the instance
```
string MongoURL =
"mongodb://username:passw...@cluster0-shard-00-01.gae
On Thursday, 28 April 2022 at 07:02:14 UTC, MGW wrote:
Probably did not compile
QtE5-master/build/QtE56/qte56core.pro
QtE5-master/build/QtE56/qte56widgets.pro
Use QMAKE to build a DLL/SO
More details by mail: m...@yandex.ru
I sent you an email. Could you answer me and send me these dlls
for W
On Thursday, 28 April 2022 at 07:02:14 UTC, MGW wrote:
Probably did not compile
QtE5-master/build/QtE56/qte56core.pro
QtE5-master/build/QtE56/qte56widgets.pro
Use QMAKE to build a DLL/SO
More details by mail: m...@yandex.ru
Hi, I didn't compile it as Qt is too big for me to download just
to u
Probably did not compile
QtE5-master/build/QtE56/qte56core.pro
QtE5-master/build/QtE56/qte56widgets.pro
Use QMAKE to build a DLL/SO
More details by mail: m...@yandex.ru
I'm trying to load a .ui GUI designed in Qt Designer. I'm
following the examples in the links below, but the following
error occurs: Error: undefined identifier `QFormBuilder`
QFormBuilder qfb = new QFormBuilder(this);
setQtObj((qfb.load(":/fQtE56help.ui")).QtObj);
* htt
On Wednesday, 20 April 2022 at 18:04:13 UTC, Alain De Vos wrote:
When compiling a .d file i don't see line numbers on which the
error occurs which is quite annoying.
The line i use to compile is :
ldc2 --gcc=cc --vcolumns --oq --dip1000 --dip25
--safe-stack-layout --boundscheck=on --D --
When compiling a .d file i don't see line numbers on which the
error occurs which is quite annoying.
The line i use to compile is :
ldc2 --gcc=cc --vcolumns --oq --dip1000 --dip25
--safe-stack-layout --boundscheck=on --D --g --w --de --d-debug
`find . -name \*.d -print`
Even:
lcd2 t
On 18/03/2022 5:56 PM, rikki cattermole wrote:
Are you trying to build dub on Android?
Android support for ldc is currently broken to due to removal of a
linker that is currently required for TLS support.
https://github.com/ldc-developers/ldc/issues/3918
My bad I didn't see FreeBSD.
Simi
Are you trying to build dub on Android?
Android support for ldc is currently broken to due to removal of a
linker that is currently required for TLS support.
https://github.com/ldc-developers/ldc/issues/3918
I disabled 32bit code maybe this created the following error
while building dub :
[00:02:18]
===
[00:02:18] ===>
[00:02:18] ===> Configuring for dub-1.14.0
[00
On Saturday, 12 March 2022 at 13:12:25 UTC, vit wrote:
```d
enum touch_T = __traits(hasMember, T, "touch");
```
I think you meant build instead of touch?
```d
struct Query {
public const SharedPtr!Builder builder;
}
interface Builder {
void build(ref Query query);
}
struct SharedPtr(T) {
`ref Query query` is scope then there is error?
```d
struct Query{
public const SharedPtr!Builder builder;
}
interface Builder{
void build(scope ref Query query); //SCOPE
}
struct SharedPtr(T){
enum touch_T = __traits(hasMember, T, "touch");
//...
}
void main(){
On Saturday, 19 February 2022 at 13:12:32 UTC, MichaelBi wrote:
when running the example in the std.net.curl on my windows, got
following msg:
std.net.curl.CurlException@std\net\curl.d(4239): Failed to load
curl, tried "libcurl.dll", "curl.dll"
does it mean i don't have those dll files? thx.
On Saturday, 19 February 2022 at 13:12:32 UTC, MichaelBi wrote:
when running the example in the std.net.curl on my windows, got
following msg:
std.net.curl.CurlException@std\net\curl.d(4239): Failed to load
curl, tried "libcurl.dll", "curl.dll"
does it mean i don't have those dll files? thx.
when running the example in the std.net.curl on my windows, got
following msg:
std.net.curl.CurlException@std\net\curl.d(4239): Failed to load
curl, tried "libcurl.dll", "curl.dll"
does it mean i don't have those dll files? thx.
On Tue, Feb 15, 2022 at 06:37:44PM +, meta via Digitalmars-d-learn wrote:
> A trick i use often:
>
> ```D
> import std;
>
> void main()
> {
> import uni = std.uni;
> writeln("Learning D is fun".split!(uni.isWhite));
> }
>
> ```
>
> Under-rated way of importing things, you don't blo
A trick i use often:
```D
import std;
void main()
{
import uni = std.uni;
writeln("Learning D is fun".split!(uni.isWhite));
}
```
Under-rated way of importing things, you don't bloat your scope
anymore
"isWhite" is ambiguous. There's std.uni.isWhite and std.ascii.isWhite.
`import std;` can't know which one you want.
thanks.
a little more help from the compiler itself would also have been
appreciated ;-)
e.g:
Error: The call to isWhite is ambiguous between the follow
. There's std.uni.isWhite and
std.ascii.isWhite. `import std;` can't know which one you want.
thanks.
a little more help from the compiler itself would also have been
appreciated ;-)
e.g:
Error: The call to isWhite is ambiguous between the following
methods: 'std.uni.isWhite' and 'std.ascii.isWhite'
On 14.02.22 12:14, forkit wrote:
However, if I uncomment the //import std.uni : isWhite;
then it will compile.
I don't understand. I thought 'import std;' would be sufficient here??
"isWhite" is ambiguous. There's std.uni.isWhite and std.ascii.isWhite.
`import std;` can't know which one you
This code will not compile.
Error: no overload matches for `split`
However, if I uncomment the //import std.uni : isWhite;
then it will compile.
I don't understand. I thought 'import std;' would be sufficient
here??
//
module test;
@safe:
import std;
void main()
error please note before the
error it may say you are missing a package or header file — you
should find those and install them and verify if it works
For Python 2.x use:
$ sudo apt-get install python-dev
If you using
[python](http://net-informations.com/python/iq/default.htm)3, try
to replace
On Wednesday, 12 January 2022 at 08:04:19 UTC, vit wrote:
Hello, I have this code:
```d
[...]
run.dlang.io has old version of dmd-beta/dmd-nightly with bug
("end");
}
```
When is this code compiled with 2.098.1 then it print:
```
Error: Cannot define both an rvalue constructor and a copy
constructor for `struct Foo`
Template instance `__ctor!(Foo)` creates a rvalue
constructor for `struct Foo`
Error: template instance `onl
On Monday, 3 January 2022 at 09:20:57 UTC, Simon wrote:
oops this went into the wrong forum! Sorry! I will repost
this as a compiler issue, any moderator feel free to delete
this post.
I got a similar issue once if a process (symbol server registry
or something) locked the PDB files and t
On Monday, 3 January 2022 at 09:20:57 UTC, Simon wrote:
oops this went into the wrong forum! Sorry! I will repost
this as a compiler issue, any moderator feel free to delete
this post.
Are you using dub? if the problem appeared over night, then it
sounds like a cache issue, probably due t
oops this went into the wrong forum! Sorry! I will repost
this as a compiler issue, any moderator feel free to delete this
post.
Forgot to mention: I'm using DMD, and the Windows 10 is 64 bit.
When compiling my project using v2.098.0 or v2.098.1 on Windows
10, this error just appeared:
: fatal error LNK1318: Unerwarteter PDB-Fehler: OK (0) "".
Error: linker exited with status 1318
"Unerwarteter PDB-Fehler" means "Unexpected PDB-error". The next
3 a
On Wednesday, 29 December 2021 at 01:00:53 UTC, Tejas wrote:
On Tuesday, 28 December 2021 at 18:27:36 UTC, vit wrote:
[...]
Since a destructor ignores `const`, I think adding the `~this`
to Foo manually is somehow making the compiler have to actually
cast away const, which it is doing via `c
On Tuesday, 28 December 2021 at 18:27:36 UTC, vit wrote:
Hi, why this code doesn't compile?
```d
struct Foo{
bool opCast(T : bool)()const{
assert(0);
}
~this(){}
}
struct Bar{
const Foo foo;
}
void main(){
}
```
Error: template instance `opCast!(Foo)` doe
Hi, why this code doesn't compile?
```d
struct Foo{
bool opCast(T : bool)()const{
assert(0);
}
~this(){}
}
struct Bar{
const Foo foo;
}
void main(){
}
```
Error: template instance `opCast!(Foo)` does not match template
declaration `opCast(T : bool)()`
On Wednesday, 17 November 2021 at 18:00:59 UTC, Steven
Schveighoffer wrote:
On 11/17/21 7:55 AM, Vitalii wrote:
[...]
Template parameters are of 3 types:
1. A type parameter. This has a single symbol name, and
represents a type *provided by the caller*.
[...]
Steve, thank you very much f
On 11/17/21 7:55 AM, Vitalii wrote:
Thank you for response, Tejas!
What I intended to do was make a class with only two states ("Inspect" -
do some analysis, "Execute" - do some stuff). That's why I tried to use
template specialization.
Template parameters are of 3 types:
1. A type paramete
On Wednesday, 17 November 2021 at 12:55:15 UTC, Vitalii wrote:
Thank you for response, Tejas!
What I intended to do was make a class with only two states
("Inspect" - do some analysis, "Execute" - do some stuff).
That's why I tried to use template specialization.
The following code compiles
Thank you for response, Tejas!
What I intended to do was make a class with only two states
("Inspect" - do some analysis, "Execute" - do some stuff). That's
why I tried to use template specialization.
The following code compiles successfully, but return *"fun with
unknown"* instead of *"fun
On Wednesday, 17 November 2021 at 12:19:05 UTC, Tejas wrote:
On Wednesday, 17 November 2021 at 10:10:43 UTC, Vitalii wrote:
Hello! I am getting the following error:
```
inst.d(8): Error: template instance `Worker!(Mode.Inspect)`
does not match template declaration `Worker(mode : Mode
On Wednesday, 17 November 2021 at 10:10:43 UTC, Vitalii wrote:
Hello! I am getting the following error:
```
inst.d(8): Error: template instance `Worker!(Mode.Inspect)`
does not match template declaration `Worker(mode : Mode)
```
when compile next code:
```
enum Mode { Inspect, Execute
Hello! I am getting the following error:
```
inst.d(8): Error: template instance `Worker!(Mode.Inspect)` does
not match template declaration `Worker(mode : Mode)
```
when compile next code:
```
enum Mode { Inspect, Execute }
class Worker(mode : Mode) {
this() {}
}
void main
On Thursday, 11 November 2021 at 07:15:04 UTC, Mathias LANG wrote:
[...]
Note that instead of doing this work yourself, I would highly
recommend the excellent
[dstep](https://github.com/jacob-carlborg/dstep).
Fixed formatting (so much for "Fix it for me").
Oh, now it makes sense! Thanks a
On Thursday, 11 November 2021 at 07:10:39 UTC, Mathias LANG wrote:
[...]
Your type definition is wrong:
```D
struct toml_datum_t {
int ok;
union u {
toml_timestamp_t* ts; /* ts must be freed after use */
char* s; /* string value. s must be freed after use */
int b; /* bool
ond one
contains the code from the example in the
[usage](https://github.com/cktan/tomlc99#usage) section.
However, when I try to compile, I'm getting the following error
message:
```
main.d(51): Error: need `this` for `s` of type `char*`
Deprecation: argument `__error` for format sp
ps://github.com/cktan/tomlc99#usage) section. However,
when I try to compile, I'm getting the following error message:
```
main.d(51): Error: need `this` for `s` of type `char*`
Deprecation: argument `__error` for format specification `"%s"`
must be `char*`, not `_error_`
ma
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
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 skeleton at the same time. Because of
this, I had to use ```shared``` object
"skeleton.d." In a
function I wrote for moving the skeletons, it uses operator
overloading, which produces the following output:
```d
physics.d(85): Error: none of the `opOpAssign` overloads of
`Point` are callable for `j` of type `shared(Point)`
physics.d(87): Error: none of the `
On Thursday, 28 October 2021 at 05:51:27 UTC, Imperatorn wrote:
Try renaming debug to something else
Many thanks guys. I should have spotted that one!
On Thursday, 28 October 2021 at 05:20:35 UTC, data pulverizer
wrote:
Hi,
I am trying to compile the following items:
[...]
Try renaming debug to something else
On Thursday, 28 October 2021 at 05:51:27 UTC, Imperatorn wrote:
On Thursday, 28 October 2021 at 05:20:35 UTC, data pulverizer
wrote:
Hi,
I am trying to compile the following items:
[...]
Try renaming debug to something else
uint, "debugflag",1,
On Thursday, 28 October 2021 at 05:20:35 UTC, data pulverizer
wrote:
I am trying to compile the following items:
struct sxpinfo_struct {
mixin(bitfields!(
// ...
uint, "debug",1,
// ...
}
```
But I get the error...
`debug` is a language keyword, try a different
case someone is trying to replicate the error.
, "alt", 1,
uint, "gp", 16,
uint, "mark", 1,
uint, "debug",1,
uint, "trace",1,
uint, "spare",1,
uint, "gcgen", 1,
uint, "gccls", 3,
uint, "named",
On Monday, 25 October 2021 at 14:43:06 UTC, Willem wrote:
Just starting out new with D. Up until now I have been using
Python and a bit of OCaml.
Error when linking: "lld-link: error: could not open
'libcmt.lib': no such file or directory"
What I did: I installed the
On Monday, 25 October 2021 at 20:00:06 UTC, Dr Machine Code wrote:
On Monday, 25 October 2021 at 15:43:06 UTC, Willem wrote:
I was able to resolve above issues by following the install
guide by DrIggy @
https://www.youtube.com/watch?v=fuJBj_tgsR8
Thanks for posting it.
Willem
A friend of mi
On Monday, 25 October 2021 at 15:43:06 UTC, Willem wrote:
I was able to resolve above issues by following the install
guide by DrIggy @
https://www.youtube.com/watch?v=fuJBj_tgsR8
Thanks for posting it.
Willem
A friend of mine was with this issue. We just end up using ldc2
but would be nice
I was able to resolve above issues by following the install guide
by DrIggy @
https://www.youtube.com/watch?v=fuJBj_tgsR8
Thanks for posting it.
Willem
Just starting out new with D. Up until now I have been using
Python and a bit of OCaml.
Error when linking: "lld-link: error: could not open
'libcmt.lib': no such file or directory"
What I did: I installed the complete D setup in my Windows 10 PC
-- including VS 2019
On Tuesday, 12 October 2021 at 00:01:25 UTC, jfondren wrote:
On Monday, 11 October 2021 at 23:43:17 UTC, Ruby The Roobster
wrote:
package mixin template move__() {
pragma(inline) package void mv(Point moveby, ref Skeleton
tomove) {
foreach(i;tomove.faces) {
On Monday, 11 October 2021 at 23:43:17 UTC, Ruby The Roobster
wrote:
package mixin template move__() {
pragma(inline) package void mv(Point moveby, ref Skeleton
tomove) {
foreach(i;tomove.faces) {
foreach(k;i.lines) {
public void decMove() {
}
```
Now, here is a test file I am using to test the 'move()' function
in physics.d:
```d
import dutils.physics;
void main() {
Skeleton skele = Skeleton([Face([Line(new
Point[0],Point(0,0,0),Point(0,0,0))],Point
On Thursday, 16 September 2021 at 20:49:28 UTC, seany wrote:
I compile with : `dub build -b release --compiler=ldc2`
The result executing the compiled binary 'myproj' is is (
whether `writeln (a[1])` is uncommented, or the `test()`
function is uncommented) some random number, usually negativ
On Thursday, 16 September 2021 at 20:49:28 UTC, seany wrote:
I create a new project with : `dub init myproj`.
Then I change the source/app.d file with this :
[...]
PS :compiling with : `dub build -b release ` ( i.e. no ldc2) is a
direct segfault of the code posted above.
PPS : my system is
I create a new project with : `dub init myproj`.
Then I change the source/app.d file with this :
`
import std.stdio;
import std.math;
import std.stdio;
import std.conv;
import std.format;
import std.math;
import std.algorithm;
On Tuesday, 14 September 2021 at 03:31:17 UTC, Kenneth Dallmann
wrote:
On Sunday, 27 March 2011 at 10:28:00 UTC, Ishan Thilina wrote:
[...]
I had the exact same problem, very frustrating. I believe I
solved the issue,
it was a simple error.
When you are installing D, on Windows, it
On Sunday, 27 March 2011 at 10:28:00 UTC, Ishan Thilina wrote:
When I give "dmd untitled.d" command in my ubuntu maverick 64
bit laptop I get the following error.
"
object.d: Error: module object is in file 'object.d' which
cannot be read
import path[0] = /etc/../..
On Saturday, 4 September 2021 at 08:54:31 UTC, Mike Parker wrote:
On Saturday, 4 September 2021 at 08:19:53 UTC, JG wrote:
[...]
You should be able to do that now with "sourceFiles" and
"sourcePaths". Just avoid the default "source" or "src"
directories and specify the paths and/or files yo
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 fi
301 - 400 of 3698 matches
Mail list logo