On Saturday, 30 July 2022 at 17:55:02 UTC, pascal111 wrote:
I don't understand much the posting details of this forum.
https://forum.dlang.org/help#about
It's simple: if you want to format/style your posts rather then
just using plain text, enable the Markdown option. It's similar
to Gith
On Thursday, 28 July 2022 at 23:08:15 UTC, frame wrote:
On Thursday, 28 July 2022 at 20:20:27 UTC, pascal111 wrote:
I retyped again some function of C library I made before, but
with D code:
It's a start but you need to learn.
Thanks!
I made the equivalent of my C library "collect":
https:
On Thursday, 28 July 2022 at 20:20:27 UTC, pascal111 wrote:
I retyped again some function of C library I made before, but
with D code:
It's a start but you need to learn.
- these functions can run into UB if you compile it without bound
checking enabled
- when working with arrays or ranges
On Thursday, 28 July 2022 at 17:46:49 UTC, frame wrote:
On Thursday, 28 July 2022 at 16:45:55 UTC, pascal111 wrote:
Aha! "In theory, someone could inject bad code", you admit my
theory.
The code would need to work and pass merge tests too. The merge
reason must match in review. If someone fi
On Thursday, 28 July 2022 at 16:45:55 UTC, pascal111 wrote:
Aha! "In theory, someone could inject bad code", you admit my
theory.
The code would need to work and pass merge tests too. The merge
reason must match in review. If someone fixes a task and
additionally adds 100 LOC some should, wi
On Thursday, 28 July 2022 at 17:21:57 UTC, H. S. Teoh wrote:
On Thu, Jul 28, 2022 at 04:45:55PM +, pascal111 via
Digitalmars-d-learn wrote:
[...]
In theory, Ken Thompson's compromised compiler hack could be at
work[1].
[...]
I think you say advanced technical information. My informati
On Thu, Jul 28, 2022 at 04:45:55PM +, pascal111 via Digitalmars-d-learn
wrote:
> On Thursday, 28 July 2022 at 16:37:35 UTC, frame wrote:
> > On Thursday, 28 July 2022 at 16:17:16 UTC, pascal111 wrote:
> >
> > > My friend, there is a wide deep secret world for hackers. We have
> > > no any ide
On Thursday, 28 July 2022 at 16:37:35 UTC, frame wrote:
On Thursday, 28 July 2022 at 16:17:16 UTC, pascal111 wrote:
My friend, there is a wide deep secret world for hackers. We
have no any idea about that world. Look, there is nothing
called a 100% fact in our world. Believe me, what we see in
On Thursday, 28 July 2022 at 16:17:16 UTC, pascal111 wrote:
My friend, there is a wide deep secret world for hackers. We
have no any idea about that world. Look, there is nothing
called a 100% fact in our world. Believe me, what we see in
software is just what "THEY" want us to see.
I think
On Thursday, 28 July 2022 at 16:13:17 UTC, frame wrote:
On Thursday, 28 July 2022 at 14:57:36 UTC, pascal111 wrote:
well between US and some other countries like "Russia", and
they are using US products like C compilers, so with some way
we have a doubt that US developed compilers with a way t
On Thursday, 28 July 2022 at 14:57:36 UTC, pascal111 wrote:
well between US and some other countries like "Russia", and
they are using US products like C compilers, so with some way
we have a doubt that US developed compilers with a way to
accept kind of messages or something like that, so my
On Thursday, 28 July 2022 at 15:55:04 UTC, kdevel wrote:
On Thursday, 28 July 2022 at 14:57:36 UTC, pascal111 wrote:
[...]
Sure. What effect do YOU hope to causes or prevent by writing
```
/**/
```
between all of your functions?
I'm normal programmer,
On Thursday, 28 July 2022 at 14:57:36 UTC, pascal111 wrote:
[...]
Sure. What effect do YOU hope to causes or prevent by writing
```
/**/
```
between all of your functions?
I'm normal programmer, by mean that I'm not so expert in C
matters to know reall
On Thursday, 28 July 2022 at 14:44:53 UTC, kdevel wrote:
On Thursday, 28 July 2022 at 13:58:24 UTC, pascal111 wrote:
[...]
Precisely in what way? I am not kidding. I am seriously
asking the question: In what way may a C or C++ compiler
benefit from lines between functions which contain only
co
On Thursday, 28 July 2022 at 13:58:24 UTC, pascal111 wrote:
[...]
Precisely in what way? I am not kidding. I am seriously asking
the question: In what way may a C or C++ compiler benefit from
lines between functions which contain only comments consisting
of nothing else than asterisks?
Seriou
On Thursday, 28 July 2022 at 13:29:01 UTC, kdevel wrote:
On Thursday, 28 July 2022 at 12:44:19 UTC, pascal111 wrote:
[...]
Do you think it helps the compiler if you put these
`/**/`
between your functions? Or is there anybody else who benefits
from it?
On Thursday, 28 July 2022 at 13:06:03 UTC, kdevel wrote:
On Thursday, 28 July 2022 at 12:25:05 UTC, pascal111 wrote:
[...]
ofix.c: In function 'fix':
ofix.c:7:3: warning: 'z' is used uninitialized
[-Wuninitialized]
7 | y=modf(x,z);
| ^
ofix.c:5:12: note: 'z' was declared h
On Thursday, 28 July 2022 at 12:44:19 UTC, pascal111 wrote:
[...]
Do you think it helps the compiler if you put these
`/**/`
between your functions? Or is there anybody else who benefits
from it?
"Do you think it helps the compiler if you put these"
Ar
On Thursday, 28 July 2022 at 12:25:05 UTC, pascal111 wrote:
[...]
ofix.c: In function 'fix':
ofix.c:7:3: warning: 'z' is used uninitialized
[-Wuninitialized]
7 | y=modf(x,z);
| ^
ofix.c:5:12: note: 'z' was declared here
5 | double y,* z;
|^
```
I woul
On Thursday, 28 July 2022 at 12:36:59 UTC, kdevel wrote:
On Thursday, 28 July 2022 at 12:26:50 UTC, pascal111 wrote:
[...]
Aha! you mean "/**/",
it has no job, just to separate between functions codes.
Do you think it helps the compiler if you put these
On Thursday, 28 July 2022 at 12:26:50 UTC, pascal111 wrote:
[...]
Aha! you mean "/**/",
it has no job, just to separate between functions codes.
Do you think it helps the compiler if you put these
`/**/`
between
On Thursday, 28 July 2022 at 12:15:19 UTC, kdevel wrote:
On Wednesday, 27 July 2022 at 18:19:34 UTC, pascal111 wrote:
[...]
1. What exact purpose do these
```
/**/
```
[...]
Aha! you mean "/**/", it
has no job
On Thursday, 28 July 2022 at 12:15:19 UTC, kdevel 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 aga
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 Thursday, 28 July 2022 at 11:13:19 UTC, Dennis wrote:
On Wednesday, 27 July 2022 at 18:19:34 UTC, pascal111 wrote:
The library link:
https://github.com/pascal111-fra/turbo-c-programs/blob/main/COLLECT2.H
It would help if the functions had a comment explaining what
they're supposed to do, b
On Wednesday, 27 July 2022 at 18:19:34 UTC, pascal111 wrote:
The library link:
https://github.com/pascal111-fra/turbo-c-programs/blob/main/COLLECT2.H
It would help if the functions had a comment explaining what
they're supposed to do, but it looks like most of them are string
functions. In D,
On Thursday, 28 July 2022 at 00:46:19 UTC, pascal111 wrote:
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::BLOCK
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 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-
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
32 matches
Mail list logo