On Friday, 18 December 2015 at 07:30:52 UTC, drug wrote:
What I mean about order of operations is that if you go
a = b*a+c*c + e;
the compiler is free to rewrite that as
float __tmp0 = a*b;
float __tmp1 = c*c;
and then do either of
float __tmp2 = __tmp0+__tmp1;
a = __tmp2 + e;
OR
float __tmp2 =
Is it possible to view the expanded form of templates or perhaps
view the post-ctfe pre-compiled d code? I couldn't find any
information on this topic but I think it would be useful.
sometimes I use templates/mixins to write code for me but,
sometimes i would rather have the expanded functions
On Friday, 18 December 2015 at 18:25:03 UTC, Taylor Hillegeist
wrote:
Is it possible to view the expanded form of templates or
perhaps view the post-ctfe pre-compiled d code? I couldn't find
any information on this topic but I think it would be useful.
sometimes I use templates/mixins to write
On Friday, 18 December 2015 at 18:35:40 UTC, Adam D. Ruppe wrote:
On Friday, 18 December 2015 at 18:25:03 UTC, Taylor Hillegeist
wrote:
Is it possible to view the expanded form of templates or
perhaps view the post-ctfe pre-compiled d code? I couldn't
find any information on this topic but I th
On 12/18/2015 10:54 AM, Taylor Hillegeist wrote:
> pragma(msg, code_generation_function())
>
>
> simple + awesome.
Yes, and perhaps unittest blocks:
unittest
{
assert(makeCode("foo") == "int foo = 42;");
}
Unfortunately, neither works with template mixins or regular templates.
Ali
On 12/18/2015 12:19 AM, Ola Fosheim Gr wrote:
On Friday, 18 December 2015 at 07:30:52 UTC, drug wrote:
What I mean about order of operations is that if you go
a = b*a+c*c + e;
the compiler is free to rewrite that as
float __tmp0 = a*b;
float __tmp1 = c*c;
and then do either of
float __tmp2 = _
By the use of this tutorial
(http://www.easysoft.com/developer/languages/c/odbc_tutorial.html), I thought it would be very straightforward to use etc.c.odbc.sqlext and etc.c.odbc.sql to create a simple odbc application. But as soon as I started, I noticed a quirk:
SQLRETURN ret;
SQLHDBC
On Friday, 18 December 2015 at 22:14:04 UTC, Fer22f wrote:
When I remove the string literal and replace it with null, it
compiles. .ptr and .toStringz both give immutable char*
references, and don't work. A "cast(char *)"DNS=*maydns*;""
works, but it feels a lot like a hack that will not work i
On Friday, 18 December 2015 at 18:25:03 UTC, Taylor Hillegeist
wrote:
Is it possible to view the expanded form of templates or
perhaps view the post-ctfe pre-compiled d code? I couldn't find
any information on this topic but I think it would be useful.
sometimes I use templates/mixins to write
On Friday, 18 December 2015 at 22:30:00 UTC, Jakob Jenkov wrote:
I am just looking at DUB and I can read that there are two
config formats: SDLang and JSON. Which one is the "new" format?
Which one is the "future" of DUB?
SDLang is the new one. JSON will remain supported. Use whichever
you li
I am just looking at DUB and I can read that there are two config
formats: SDLang and JSON. Which one is the "new" format? Which
one is the "future" of DUB?
On Sunday, 13 December 2015 at 20:29:47 UTC, Pederator wrote:
Hi. Does anybody who is familair with D consider to make a
comprehensive D programming video tutorial / training / course?
This could be encouraging and helpful for people to start with
D. It could also help in promoting D programmin
I have written more than 750 tutorials about Java
... and web development and other related stuff. Not only Java.
On 18.12.2015 23:14, Fer22f wrote:
By the use of this tutorial
(http://www.easysoft.com/developer/languages/c/odbc_tutorial.html), I
thought it would be very straightforward to use etc.c.odbc.sqlext and
etc.c.odbc.sql to create a simple odbc application. But as soon as I
started, I noticed a quir
I have a few videos on about D on YT.
But those are ... well suboptimal.
I will probably talk a bit about SDC... when time permits
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 are simply wrapped up in a JAR (Zip)
file, and then they can be used
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 are
On Friday, 18 December 2015 at 22:35:04 UTC, anonymous wrote:
If the parameter is de facto const, then the cast is ok.
Though, maybe it should be marked const then.
I'm just worried about casts because I read somewhere that
strings start with the number of characters inside them (probably
in
On Friday, 18 December 2015 at 22:18:34 UTC, Adam D. Ruppe wrote:
That's what the examples on MSDN do too though, a cast. At
first I thought the binding was missing a const, but the ODBC
docs don't specify it as const either and cast.
The ODBC functions also have a size parameter for string
p
On Saturday, 19 December 2015 at 00:09:16 UTC, Basile B. wrote:
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 a
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 automatically using
the -H flag in dmd. It will produce a "D inte
On Saturday, 19 December 2015 at 00:52:40 UTC, Jakob Jenkov 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 file
On 19.12.2015 01:06, Fer22f wrote:
Documentation on casts say:
Casting a pointer type to and from a class type is done as a type paint
(i.e. a reinterpret cast).
That sentence doesn't apply. string is not a class, it's an alias for
immutable(char)[], i.e. it's an array.
Reinterpretation i
On Friday, 18 December 2015 at 22:35:45 UTC, Jakob Jenkov wrote:
On Sunday, 13 December 2015 at 20:29:47 UTC, Pederator wrote:
I have been thinking about writing about D too. Maybe make a
few videos. But I don't know... I don't know how big the
interest is in total.
Well considering documen
24 matches
Mail list logo