On Thursday, 28 July 2022 at 06:01:17 UTC, Alexander Zhirov wrote:
```sh
/root/usr/program/gcc/9.5.0/install/bin/cc app.o -o app
-L/root/usr/program/ldc/1.30/install/lib -lphobos2-ldc
-ldruntime-ldc -Wl,--gc-sections -lrt -ldl -lpthread -lm -m32
```
Even tried with such a flag separately, it
I did a topic a [little
earlier](https://forum.dlang.org/thread/hfzsnagofrnlmynyz...@forum.dlang.org) about compiling a compiler for processor Geode LX800.
The bottom line is that I have a processor on which I want to
compile the program, is an i586 architecture.
The [official
documentation](h
On Thursday, 28 July 2022 at 00:36:54 UTC, ryuukk_ wrote:
I don't remember the exact syntax for GDC, but it should be
pretty similar to DMD
You need to pass the module to the compiler
gdc main.d dcollect.d
I'm using CODE::BLOCKS IDE. How can I do it through it?
I don't remember the exact syntax for GDC, but it should be
pretty similar to DMD
You need to pass the module to the compiler
gdc main.d dcollect.d
On Wednesday, 27 July 2022 at 19:07:26 UTC, ryuukk_ wrote:
On Wednesday, 27 July 2022 at 18:19:34 UTC, pascal111 wrote:
I made a library of some useful functions while I was studying
C, and I'm curious to know if D has equivalents or some ones
for some of my functions, or I have to retype 'em a
On Wednesday, 27 July 2022 at 09:35:12 UTC, Ali Çehreli wrote:
The following program show an example as well as 'enforce',
which I prefer over explicit if+throw+else:
Me too.
enforce!MissingArguments(args.length == 42,
format!"Too few arguments:
%s"(args.length)
On Tuesday, 26 July 2022 at 23:43:59 UTC, pascal111 wrote:
In next example code, it used user-made exception,
[...]
try {
if( b == 0 ) {
throw new Exception("Cannot divide by zero!");
} else {
result = format("%s",a/b);
}
[..
On Wednesday, 27 July 2022 at 18:19:34 UTC, pascal111 wrote:
I made a library of some useful functions while I was studying
C, and I'm curious to know if D has equivalents or some ones
for some of my functions, or I have to retype 'em again in D.
The library link:
https://github.com/pascal111-
On Wednesday, 27 July 2022 at 11:09:19 UTC, Ali Çehreli wrote:
On 7/27/22 04:00, pascal111 wrote:
I noticed more than once that the exclamation "!" is used
within functions typing, and it seems like an operator with
new use, for example "to!int()", ".tee!(l => sum +=
l.length)", "enforce!Missi
I made a library of some useful functions while I was studying C,
and I'm curious to know if D has equivalents or some ones for
some of my functions, or I have to retype 'em again in D.
The library link:
https://github.com/pascal111-fra/turbo-c-programs/blob/main/COLLECT2.H
Thank you, that seems to have been the source of the error.
On Wednesday, 27 July 2022 at 12:26:59 UTC, MyNameHere wrote:
```d
void Main(void* Instance)
{
WNDCLASSEXA WindowClass;
```
This is equivalent to `WNDCLASSEXA WindowClass =
WNDCLASSEXA.init;`
If the struct's fields all initialize to 0, the compiler would
simply set the variable's bytes
I have included the source to a simple 64-bit Windows program.
It compiles and runs fine with ```dmd -m64
-L="/Subsystem:Windows" -L="/Entry:Main" Main.d```. But compiling
with ```-betterC``` using the following throws up a linker error,
```dmd -m64 -betterC -L="/Subsystem:Windows" -L="/Entry:M
On 7/27/22 04:00, pascal111 wrote:
I noticed more than once that the exclamation "!" is used within
functions typing, and it seems like an operator with new use, for
example "to!int()", ".tee!(l => sum += l.length)",
"enforce!MissingArguments...", so what dose it means?
The binary ! operato
I noticed more than once that the exclamation "!" is used within
functions typing, and it seems like an operator with new use, for
example "to!int()", ".tee!(l => sum += l.length)",
"enforce!MissingArguments...", so what dose it means?
On Wednesday, 27 July 2022 at 09:35:12 UTC, Ali Çehreli wrote:
On 7/26/22 16:43, pascal111 wrote:
> [...]
I am not sure I understand you correctly because the program
you show throws Exception, which is not user-made at all.
[...]
It seems an advanced topic. It'll take some more studying to
On 7/26/22 16:43, pascal111 wrote:
> In next example code, it used user-made exception,
I am not sure I understand you correctly because the program you show
throws Exception, which is not user-made at all.
If you want to throw a particual exception that you define, you need to
inherit that t
On Tuesday, 26 July 2022 at 23:43:59 UTC, pascal111 wrote:
In next example code, it used user-made exception, but what if
I'm looking for a particular exception? from where can I get
particular exception to arise it?
There is no mechanism to find a particular exceptions in D. You
have simple
18 matches
Mail list logo