On Sunday, 12 June 2022 at 05:05:46 UTC, forkit wrote:
e.g. If I could something like this:
// foo_1.d
module foo_1
private int a; // a is private to module foo_1
// foo_2.d
module foo_2
private int b; // b is private to module foo_2
// foo.d
module foo[dependencies:foo_1, foo_2];
import
On Saturday, 11 June 2022 at 21:44:17 UTC, harakim wrote:
I tried the solution I suggested and it did not work because
the child would occlude the parent (which is in the comments
now that I see it.)
yeah minigui's model is to tile the widgets; they aren't supposed
to overlap (except their
On Saturday, 11 June 2022 at 01:20:17 UTC, harakim wrote:
The issue I'm having is that I don't understand how to assign
bounds in the nested widget. I'm sure there's a very clean
solution. I basically want a paintContent method but with the
bounds dynamically assigned by the parent.
Well the
Is it possible to create a package.d, consisting of (for
example), two modules, where each module can access private
declarations within each other.
In essence, declaring 'a module level friendship', or a kind of
'extended module' if you want.
I might still want to add another module to the
On Sunday, 12 June 2022 at 05:05:46 UTC, forkit wrote:
Is it possible to create a package.d, consisting of (for
example), two modules, where each module can access private
declarations within each other.
In essence, declaring 'a module level friendship', or a kind of
'extended module' if you
On Saturday, 11 June 2022 at 15:01:05 UTC, Ali Çehreli wrote:
On 6/11/22 00:09, z wrote:
> I rechecked and it should be `X Y Z` for static array, but `Z
Y X` for
> indexing/dynamic array creating with `new`
How so?
i meant with the syntax in (1), the spec's documentation appears
to say they
On 6/11/22 13:36, z wrote:
> i meant with the syntax in (1), the spec's documentation appears to say
> they are equivalent in result with `new *type*[X][Y]` form.
>
> (1) https://dlang.org/spec/expression#new_multidimensional (3. multiple
> argument form)
Thank you. I see now: The values in
On Saturday, 11 June 2022 at 01:20:17 UTC, harakim wrote:
On Friday, 20 May 2022 at 12:07:46 UTC, Adam D Ruppe wrote:
On Friday, 20 May 2022 at 03:47:14 UTC, harakim wrote:
Thank you. I will definitely give that a try.
But just ask me if something comes up since I can push fixes
to master p
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`
```
On Saturday, 11 June 2022 at 01:52:58 UTC, Mike Parker wrote:
People getting bit by `new` in field initialization often
enough that I think a warning would be helpful.
The problem is so much bigger because it is not just a case of
being aware not to use `new` in member initialisers. As you
On Saturday, 11 June 2022 at 10:37:30 UTC, Bastiaan Veelo wrote:
So that’s why I used “why” in the title of this thread, which I
haven’t seen an answer to yet. What is the practical case where
that warning would be annoying? When would you actually want
this behaviour?
After actually
On Friday, 10 June 2022 at 17:26:48 UTC, Ali Çehreli wrote:
I've written about this multiple times in the past but D's way
is consistent for me. That must be because I always found C's
syntax to be very illogical on this. [...]
I think so too...
I think D is very consistent with our
On Saturday, 11 June 2022 at 11:51:43 UTC, Tejas wrote:
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
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
On Saturday, 11 June 2022 at 02:22:28 UTC, matheus wrote:
Well would this be annoying? Yes, mainly if I already know
this, but if not, then it would be like a nice to know warning
for newbies like myself. By the way this would be only in the
cases that a static array field being initialized
On Saturday, 11 June 2022 at 03:56:32 UTC, Chris Katko wrote:
On Friday, 10 June 2022 at 17:26:48 UTC, Ali Çehreli wrote:
On 6/10/22 08:13, z wrote:
> arrays of arrays has different order for declaration and
addressing,
> and declaring array of arrays has different order depending
on how you
>
On 6/11/22 04:16, Salih Dincer wrote:
> I think D is very consistent with our feelings. That is, the order in
> memory is in the form of rows x columns.
Yet, there are no rows or columns because neither D nor C (nor C++) have
multip-dimensional arrays. They all have arrays where elements are
On 6/11/22 00:09, z wrote:
> I rechecked and it should be `X Y Z` for static array, but `Z Y X` for
> indexing/dynamic array creating with `new`
How so? I wrote the following program:
import std.stdio;
void main() {
enum X = 2;
enum Y = 3;
enum Z = 4;
int[X][Y][Z] s;
int[X][Y][] d
On Saturday, 11 June 2022 at 13:09:44 UTC, vc wrote:
Hello, is there any way to represnts a sha256 hash like
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824 in BigInt ?
I've try so far auto t =
BigInt("2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824") and
On Saturday, 11 June 2022 at 13:09:44 UTC, vc wrote:
Hello, is there any way to represnts a sha256 hash like
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824 in BigInt ?
I've try so far auto t =
BigInt("2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824") and
On Saturday, 11 June 2022 at 10:52:58 UTC, Mike Parker wrote:
I agree with your initial assessment that it should be an
error. It really only makes sense to allow the dynamic
allocation if the fields are immutable and, in the case of
arrays, the initializer is a literal.
Hello, is there any way to represnts a sha256 hash like
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
in BigInt ?
I've try so far auto t =
BigInt("2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824") and it gives me invalid digit
22 matches
Mail list logo