November 21 Issues » [Issue 24869] Qualifier dropped from return type when AliasSeq is indexed with template argument | |||
|---|---|---|---|
| |||
...ref const(AliasSeq!(int)[0]) g() const;
pragma(msg, typeof(g)); // const ref const(int)()
-- | |||
November 21 Genel » Show Helper | |||
|---|---|---|---|
| |||
...22)
{
static if(n < 2) const f = 1;
else const f = n * f!(n - 1... | |||
November 21 Issues » [Issue 24869] Qualifier dropped from return type when AliasSeq is indexed with template argument | |||
|---|---|---|---|
| |||
...S
{
int n;
ref int get() const => n;
}
void main()
{
const S s;
s.get;
}
-- | |||
November 21 Genel » Re: @nogc | |||
|---|---|---|---|
| |||
...c] = randomTile!100(r, c);
}
auto displayHexMap(const HexTile* map, int rows, int columns)
{
for... | |||
November 21 Issues » [Issue 24793] Allow implicit conversion of const pointers to void* | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=24793 --- Comment #5 from Dennis <dkorpel@live... | |||
November 21 Issues » [Issue 24793] Allow implicit conversion of const pointers to void* | |||
|---|---|---|---|
| |||
...about operating on const data. IMHO, we should never be implicitly removing const when any... | |||
November 21 Issues » [Issue 24870] cast() ignore when the dot operator is used | |||
|---|---|---|---|
| |||
...as expected. The dot operator has a higher precedence, and `cast()(const(T*))` == `const(T)*`. -- | |||
November 21 Issues » [Issue 24793] Allow implicit conversion of const pointers to void* | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=24793 --- Comment #3 from Dennis <dkorpel@live... | |||
November 21 Issues » [Issue 24870] New: cast() ignore when the dot operator is used | |||
|---|---|---|---|
| |||
...dlang@jmdavisProg.com
This code
---
void main()
{
const s = S(42);
T* ptr = cast() s... | |||
November 21 Issues » [Issue 24793] Allow implicit conversion of const pointers to void* | |||
|---|---|---|---|
| |||
...void* vs const void* discusses: https://stackoverflow.com/questions/5547131/c-question-const-void-vs... | |||
Copyright © 1999-2021 by the D Language Foundation