On Sunday, 27 December 2015 at 03:34:18 UTC, riki wrote:
void ccf(const char* str){}
void cwf(const wchar* str){}
void main()
{
ccf("aaa");//ok
cwf("xxx"w); // error and why ?
}
IDK but usually the const storage class is used for narrow
strings because it allows to pass either
On Sunday, 27 December 2015 at 04:54:07 UTC, Basile B. wrote:
it allows to pass either `char[]` or `string[]`:
I meant "char[]` or `string", string without square brackets of
course...
On Sunday, 27 December 2015 at 05:29:44 UTC, riki wrote:
On Sunday, 27 December 2015 at 04:54:07 UTC, Basile B. wrote:
On Sunday, 27 December 2015 at 03:34:18 UTC, riki wrote:
void ccf(const char* str){}
void cwf(const wchar* str){}
void main()
{
ccf("aaa");//ok
cwf("xxx"w); //
On Wednesday, 23 December 2015 at 19:34:26 UTC, earthfront wrote:
On Wednesday, 23 December 2015 at 11:00:19 UTC, Jakob Ovrum
wrote:
[...]
My goal is to import several symbols from different modules on
one line.
I'm trying to figure out if it's possible or not. It makes the
code more concise
On Wednesday, 23 December 2015 at 21:19:14 UTC, Taylor Hillegeist
wrote:
On Wednesday, 23 December 2015 at 21:12:11 UTC, Taylor
Hillegeist wrote:
On Wednesday, 23 December 2015 at 21:07:12 UTC, Basile B.
wrote:
[...]
Thanks for letting me know! So is what your saying is that an
common
On Wednesday, 23 December 2015 at 20:52:05 UTC, Adam D. Ruppe
wrote:
On Wednesday, 23 December 2015 at 20:49:21 UTC, Taylor
Hillegeist wrote:
| GRAPICS LIB |
+---+---+---+ <- what is this interface
|SDL|GDI|OPENGL.|
+---+---+---+
SDL, GDI, and OpenGL *are* graphics libs so it
On Wednesday, 23 December 2015 at 21:12:11 UTC, Taylor Hillegeist
wrote:
On Wednesday, 23 December 2015 at 21:07:12 UTC, Basile B. wrote:
[...]
Thanks for letting me know! So is what your saying is that an
common interface is not possible or practical or perhaps useful?
It's possible but
On Wednesday, 23 December 2015 at 00:59:53 UTC, steven kladitis
wrote:
I have 843 programs written in D.
[...] All of the programs are from RosettaCode.org. The script
to compile them generates a log file and you will see a few
that the linker just stops No idea why. A few have 64K link
On Sunday, 20 December 2015 at 11:16:06 UTC, TheDGuy wrote:
On Sunday, 20 December 2015 at 01:17:50 UTC, Basile B. wrote:
On Saturday, 19 December 2015 at 14:16:23 UTC, TheDGuy wrote:
is it possible to set the color of a single pixel with Cairo?
Not like you would do with a classic canvas
On Monday, 21 December 2015 at 02:03:14 UTC, Shriramana Sharma
wrote:
I'm trying to interface to a C function:
extern(C) const char * textAttrN(const char * specString,
size_t n);
and getting the error:
Error: function .textAttrN without 'this' cannot be const
Please advise as to what I'm
On Saturday, 19 December 2015 at 00:46:12 UTC, cym13 wrote:
To be exact it doesn't need the sources, it needs the function
signatures and type definitions so the equivalent of C header
files. If you don't want to share the full sources with your
library you can generate those header files
On Saturday, 19 December 2015 at 14:16:23 UTC, TheDGuy wrote:
is it possible to set the color of a single pixel with Cairo?
Not like you would do with a classic canvas (2d grid), because
colors are applied with `cairo_fill()` and `cairo_stroke()` on a
particular path.
but you can define a
On Sunday, 20 December 2015 at 01:29:59 UTC, Israel wrote:
On Saturday, 19 December 2015 at 20:52:41 UTC, Matheus Reis
wrote:
Hello, people!
I'm Matheus, a 20 y/o game developer who wants to get started
with D. It has really caught my attention, and I've been
playing with it for some hours
On Friday, 18 December 2015 at 23:20:34 UTC, Jakob Jenkov wrote:
I'm coming from Java where "packages" are not that much more
than directories. Each class can be exposed or hidden inside a
package etc.
In Java it is common that an API consists of many packages and
subpackages. All classes
On Thursday, 17 December 2015 at 04:11:56 UTC, tcak wrote:
On Wednesday, 16 December 2015 at 18:30:41 UTC, Byron Heads
wrote:
On Wednesday, 16 December 2015 at 18:21:33 UTC, Byron Heads
wrote:
On Wednesday, 16 December 2015 at 18:14:35 UTC, Byron Heads
I searched the function "__lseek64" under
On Saturday, 12 December 2015 at 14:17:52 UTC, Shriramana Sharma
wrote:
Hello. Re my posting just now re AliasSeq being able to contain
a template identifier too, I wonder whether it is possible to
have a std.traits template to identify whether something is a
template or not?
In connection
On Thursday, 10 December 2015 at 14:46:26 UTC, Basile B. wrote:
On Thursday, 10 December 2015 at 14:24:43 UTC, Shriramana
Sharma wrote:
Hello. I'm using DMD 2.069.2. As per
http://ddili.org/ders/d.en/enum.html the following code is
supposed to output the *names* of the suits:
import
On Thursday, 10 December 2015 at 14:24:43 UTC, Shriramana Sharma
wrote:
Hello. I'm using DMD 2.069.2. As per
http://ddili.org/ders/d.en/enum.html the following code is
supposed to output the *names* of the suits:
import std.stdio;
void main()
{
enum Suit { spades, hearts, diamonds, clubs
701 - 718 of 718 matches
Mail list logo