On Wednesday, 15 February 2023 at 02:14:30 UTC, Mike Parker wrote:
On Wednesday, 15 February 2023 at 01:16:00 UTC,
thebluepandabear wrote:
I think what you could say is that D lacks _encapsulation_
which is also an OOP concept. So D is partially OOP but not
fully OOP due to there being no
Time to move on to OCaml programmers telling us D doesn't have
floating point arithmetic because there's no `+.` operator.
that's not the same thing though, you've created a great false
equivalence! Congrats.
On Wednesday, 15 February 2023 at 02:14:30 UTC, Mike Parker wrote:
On Wednesday, 15 February 2023 at 01:16:00 UTC,
thebluepandabear wrote:
I think what you could say is that D lacks _encapsulation_
which is also an OOP concept. So D is partially OOP but not
fully OOP due to there being no
The code below has two `foo` functions that take slices, one
accepts a const(T)* iterator and one accepts a generic Iterator
with the property that the slice isn't convertible to the first
one. The nice thing about this is that if you pass it with a
double* or const(double)*, then it doesn't
On Wednesday, 15 February 2023 at 01:16:00 UTC, thebluepandabear
wrote:
I think what you could say is that D lacks _encapsulation_
which is also an OOP concept. So D is partially OOP but not
fully OOP due to there being no encapsulation in the language.
D does not lack encapsulation, it's
```d
myFile.seek(-1, SEEK_END);
ubyte c[1];
myFile.rawRead(c[]);
if(c[0] == '\n') // ends in newline
```
-Steve
On Wednesday, 15 February 2023 at 01:15:09 UTC, thebluepandabear
wrote:
On Tuesday, 14 February 2023 at 15:34:17 UTC, bachmeier wrote:
On Tuesday, 14 February 2023 at 10:16:47 UTC, ProtectAndHide
wrote:
In any case, there is nothing 'picky' about wanting to be
able to explicately 'declare' a
On Tuesday, 14 February 2023 at 15:34:17 UTC, bachmeier wrote:
On Tuesday, 14 February 2023 at 10:16:47 UTC, ProtectAndHide
wrote:
In any case, there is nothing 'picky' about wanting to be able
to explicately 'declare' a member of my class type as being
private. That to me, is what a
On Tuesday, 14 February 2023 at 21:55:24 UTC, Adam D Ruppe wrote:
On Tuesday, 14 February 2023 at 21:23:26 UTC, ryuukk_ wrote:
module name must correspond to its path
this is not true.
I thought it had to match, that's interesting
On Tuesday, 14 February 2023 at 21:23:26 UTC, ryuukk_ wrote:
module name must correspond to its path
this is not true.
Glad it worked!
I wonder why DMD doesn't just parse the import and follow its
path since module name must correspond to its path
Does anyone know?
On Tuesday, 14 February 2023 at 15:34:17 UTC, bachmeier wrote:
On Tuesday, 14 February 2023 at 10:16:47 UTC, ProtectAndHide
wrote:
In any case, there is nothing 'picky' about wanting to be able
to explicately 'declare' a member of my class type as being
private. That to me, is what a
On Tuesday, 14 February 2023 at 17:56:39 UTC, ryuukk_ wrote:
I think you need to do:
```
rdmd MLP.d -I ANN/
```
Basically you need to tell the compiler where your imported
packages are
This did the trick. I did not need it when `utils` was the only
local import, but I suppose the compiler
Hello
Consider the content of a file
First line \n
Second line
data data data data ... last char
My goal is to find out whether the last character is a new line
or not. Please not, it will be sufficient if this works on Linux.
More specifically I want to insert a new
I think you need to do:
```
rdmd MLP.d -I ANN/
```
Basically you need to tell the compiler where your imported
packages are
I have the following directory structure:
```
ANN/
ANN/mathkit/
ANN/mathkit/package.d
ANN/utils/
ANN/utils/package.d
ANN/MLP.d
```
I have the following in "ANN/mathkit/package.d":
```d
module ANN.mathkit;
//...
/// Local Imports ///
import ANN.utils;
//...
```
I
On Tuesday, 14 February 2023 at 10:16:47 UTC, ProtectAndHide
wrote:
In any case, there is nothing 'picky' about wanting to be able
to explicately 'declare' a member of my class type as being
private. That to me, is what a programmer should expect to be
able to do in a language that says it
On Tuesday, 14 February 2023 at 10:16:47 UTC, ProtectAndHide
wrote:
On Tuesday, 14 February 2023 at 08:15:37 UTC, Kagamin wrote:
My point is you know you're just picky.
Well.. it seems to me, that your 'point' is to just have a go
at me.
In any case, there is nothing 'picky' about wanting
On Tuesday, 14 February 2023 at 08:15:37 UTC, Kagamin wrote:
My point is you know you're just picky.
Well.. it seems to me, that your 'point' is to just have a go at
me.
In any case, there is nothing 'picky' about wanting to be able to
explicately 'declare' a member of my class type as
My point is you know you're just picky.
20 matches
Mail list logo