If I use an enum dmd DOES remove it in release build. But I'm not
sure for the general case yet.
On Tuesday, 7 June 2016 at 02:04:41 UTC, Mithun Hunsur wrote:
On Monday, 6 June 2016 at 21:57:20 UTC, Pie? wrote:
On Monday, 6 June 2016 at 21:31:32 UTC, Alex Parrill wrote:
[...]
This doesn't seem to be the case. In a release build, even
though I never "use" the string, it is embedded. I
On Monday, 6 June 2016 at 21:31:32 UTC, Alex Parrill wrote:
On Monday, 6 June 2016 at 17:31:52 UTC, Pie? wrote:
Is it possible to parse a file at compile time without
embedding it into the binary?
I have a sort of "configuration" file that defines how to
create some objects. I'd like to be
Is it possible to parse a file at compile time without embedding
it into the binary?
I have a sort of "configuration" file that defines how to create
some objects. I'd like to be able to read how to create them but
not have that config file stick around in the binary.
e.g., (simple
On Monday, 6 June 2016 at 06:10:35 UTC, rikki cattermole wrote:
On 06/06/2016 6:06 PM, Pie? wrote:
On Monday, 6 June 2016 at 05:30:12 UTC, rikki cattermole wrote:
On 06/06/2016 5:07 PM, Pie? wrote:
[...]
Then I would say go get a new image library as that one isn't
a very
good one.
On Monday, 6 June 2016 at 05:30:12 UTC, rikki cattermole wrote:
On 06/06/2016 5:07 PM, Pie? wrote:
[...]
Then I would say go get a new image library as that one isn't a
very good one.
..snip..
Right got rid of all that text.
If you want to make the filesystem appear to have files it
On Monday, 6 June 2016 at 03:23:02 UTC, rikki cattermole wrote:
On 06/06/2016 3:11 PM, Pie? wrote:
On Monday, 6 June 2016 at 02:34:07 UTC, Adam D. Ruppe wrote:
On Monday, 6 June 2016 at 02:05:09 UTC, Pie? wrote:
I believe the essentially converted the file into a ubyte or
something and then
On Monday, 6 June 2016 at 02:34:07 UTC, Adam D. Ruppe wrote:
On Monday, 6 June 2016 at 02:05:09 UTC, Pie? wrote:
I believe the essentially converted the file into a ubyte or
something and then wrote that out to a temp file and read in
the temp file... this seems a bit of a kludge to me.
They
On Monday, 6 June 2016 at 02:18:48 UTC, docandrew wrote:
On Monday, 6 June 2016 at 02:05:09 UTC, Pie? wrote:
I saw somewhere someone explaining how to embed resources into
a binary using the import keyword.
I believe the essentially converted the file into a ubyte or
something and then wrote
I saw somewhere someone explaining how to embed resources into a
binary using the import keyword.
I believe the essentially converted the file into a ubyte or
something and then wrote that out to a temp file and read in the
temp file... this seems a bit of a kludge to me.
Is it possible to
On Saturday, 4 June 2016 at 02:10:57 UTC, Adam D. Ruppe wrote:
On Saturday, 4 June 2016 at 01:04:08 UTC, Pie? wrote:
alias this pImage;
It is actually `alias pImage this;`
That should do what you want right here. Then you can add your
own methods or wrap/disable the image ones one by
On Saturday, 4 June 2016 at 02:22:37 UTC, Adam D. Ruppe wrote:
On Friday, 3 June 2016 at 20:06:50 UTC, Pie? wrote:
Thanks! It is working. A few issues with my images being
clipped and not throwing when file doesn't exist...
That's weird.. I don't know what's going on there.
BTW have you seen
I would like to temporarily write some adapters or wrappers for
various types that allow the most extensibility with the least
amount of work. The goal is to get moving quickly as possible and
not try to implement all future needs. The wrappers will slowly
turn into full their own types and
On Friday, 3 June 2016 at 15:47:16 UTC, Adam D. Ruppe wrote:
On Thursday, 2 June 2016 at 04:01:03 UTC, Pie? wrote:
Thanks, I'll look into it. I have tried OpenGL with
simpledisplay but I cannot draw to the window. I assume other
drawing methods are required?
Yeah, you have to use the OpenGL
On Thursday, 2 June 2016 at 16:14:47 UTC, Pie? wrote:
Since D uses the single inheritance model for classes, I wonder
if it is possible to write a class then extract the interface
from it?
e.g.,
class myclass
{
public void foo() { writeln("adf"); }
}
mixin!(extractInterface!(myclass,
Since D uses the single inheritance model for classes, I wonder
if it is possible to write a class then extract the interface
from it?
e.g.,
class myclass
{
public void foo() { writeln("adf"); }
}
mixin!(extractInterface!(myclass, myinterface));
Where the mixin creates the interface as
On Thursday, 2 June 2016 at 11:15:59 UTC, Guillaume Piolat wrote:
On Thursday, 2 June 2016 at 06:28:51 UTC, Pie? wrote:
On Thursday, 2 June 2016 at 04:52:50 UTC, Mithun Hunsur wrote:
On Thursday, 2 June 2016 at 04:02:36 UTC, Pie? wrote:
Does anyone know if there is any Asio bindings or direct
On Thursday, 2 June 2016 at 04:52:50 UTC, Mithun Hunsur wrote:
On Thursday, 2 June 2016 at 04:02:36 UTC, Pie? wrote:
Does anyone know if there is any Asio bindings or direct D
available that allows for IO?
Check out vibe.d: https://vibed.org/ - it includes a fairly
complete implementation of
Does anyone know if there is any Asio bindings or direct D
available that allows for IO?
On Thursday, 2 June 2016 at 03:37:01 UTC, Adam D. Ruppe wrote:
On Thursday, 2 June 2016 at 03:19:20 UTC, Pie? wrote:
I'm curious about how to draw a scaled image.
There's a few general options:
1) Scale it yourself in-memory then draw. This is a pain, I
don't think my public libraries have
I found your git hub and tried simpledisplay and png. I had
virtually no problems getting them working from the get go!
Thanks for your hard work!!! You deserve a cookie, or a million
bucks!
I'm curious about how to draw a scaled image. I would like to
have a "global" scale for my image
21 matches
Mail list logo