Search

November 21
Issues »
...ref const(AliasSeq!(int)[0]) g() const;
    pragma(msg, typeof(g)); // const ref const(int)()

--
November 21
Genel »
...22)
{
  static if(n < 2) const f = 1;
  else const f = n * f!(n - 1...
November 21
Issues »
...S
{
    int n;
    ref int get() const => n;
}

void main()
{
    const S s;
    s.get;
}

--
November 21
Genel »
...c] = randomTile!100(r, c);
}

auto displayHexMap(const HexTile* map, int rows, int columns)
{
  for...
November 21
Issues »
https://issues.dlang.org/show_bug.cgi?id=24793

--- Comment #5 from Dennis <dkorpel@live...
November 21
Issues »
...about operating on const data.

IMHO, we should never be implicitly removing const when any...
November 21
Issues »
...as expected. The dot operator has a higher precedence, and
`cast()(const(T*))` == `const(T)*`.

--
November 21
Issues »
https://issues.dlang.org/show_bug.cgi?id=24793

--- Comment #3 from Dennis <dkorpel@live...
November 21
Issues »
...dlang@jmdavisProg.com

This code

---
void main()
{
    const s = S(42);
    T* ptr = cast() s...
November 21
Issues »
...void* vs const void* discusses: https://stackoverflow.com/questions/5547131/c-question-const-void-vs...
1 2 3 4 5 6
Next ›   Last »