Converting literal strings to pointers

novice2 sorry at noem.ail
Mon Jan 8 22:32:04 PST 2007


sorry, may be i missing something, but imho
cast(void*)"str".ptr is too redundant.

for me this work:


import std.stdio;

void main()
{
  void* p = "str".ptr;
  writefln("p=%08X", p);
}


More information about the Digitalmars-d-learn mailing list