On Tuesday, 7 January 2020 at 15:51:21 UTC, MoonlightSentinel
wrote:
On Tuesday, 7 January 2020 at 15:40:58 UTC, Taylor Hillegeist
wrote:
but I can't get it to work. it says its an Error: non-constant
expression.
I imagine this has to do with the ctRegex template or
something. maybe there is
I'm trying to trick the following code snippet into compilation.
enum TokenType{
//Terminal
Plus,
Minus,
LPer,
RPer,
Number,
}
static auto Regexes =[
TokenType.Plus: ctRegex!(`^ *\+`),
TokenType.Minus: ctRegex!(`^ *\-`),
TokenType.LPer:
On Saturday, 14 December 2019 at 06:14:23 UTC, BoraxMan wrote:
On Wednesday, 11 December 2019 at 18:54:49 UTC, jicman wrote:
Greetings!
I am trying to see if there are any converters out there from
d code to c. Anyone knows? Thanks.
josé
I don't think there would be any. The BetterC
On Friday, 6 December 2019 at 05:09:58 UTC, Paul Backus wrote:
On Thursday, 5 December 2019 at 17:27:45 UTC, Taylor Hillegeist
wrote:
I agree with this.
I wasn't clear enough in my question though.
I was trying to distinguish between std.functional.compose and
std.functional.pipe
they look
Learning all the ins and outs of the std library is fun. But
there are soo many hidden gems that its hard to tell when to keep
looking and when to just write something. I was working on a
split function with some particulars:
Split but keep exactly one delimiter at the beginning of each
On Thursday, 5 December 2019 at 15:43:30 UTC, Paul Backus wrote:
On Thursday, 5 December 2019 at 15:30:52 UTC, Taylor Hillegeist
wrote:
On Friday, 29 November 2019 at 15:24:31 UTC, Paul Backus wrote:
.pipe!((output) {
if (sortOutput)
return output.sort!("a < b");
else
On Friday, 29 November 2019 at 15:24:31 UTC, Paul Backus wrote:
.pipe!((output) {
if (sortOutput)
return output.sort!("a < b");
else
return output;
})
.writeln(); // maybe you meant each!writeln ?
Why pipe as apposed to compose?
Pipes functions in
On Friday, 26 April 2019 at 10:22:49 UTC, Bastiaan Veelo wrote:
On Friday, 26 April 2019 at 08:35:57 UTC, Bastiaan Veelo wrote:
On Thursday, 25 April 2019 at 08:44:14 UTC, Dennis wrote:
On Monday, 22 April 2019 at 16:24:53 UTC, Taylor Hillegeist
wrote:
Or would this not be easy at all with D?
Saw this tool and thought D could probably do something like this
pretty easily. Is there such a tool out there already?
https://github.com/cool-RR/pysnooper
Or would this not be easy at all with D?
On Thursday, 8 March 2018 at 17:14:16 UTC, Jonathan M Davis wrote:
On Thursday, March 08, 2018 16:34:11 Guillaume Piolat via
Digitalmars-d wrote:
On Wednesday, 7 March 2018 at 13:24:25 UTC, Jonathan M Davis
wrote:
> On Wednesday, March 07, 2018 12:53:16 Guillaume Piolat via
>
> Digitalmars-d
So i've seen on the forum over the years arguments about
auto-decoding (mostly) and some other things. Things that have
been considered mistakes, and cannot be corrected because of the
breaking changes it would create. And I always wonder why not
make a solution to the tune of a flag that
On Monday, 11 December 2017 at 19:34:56 UTC, ketmar wrote:
major update: entity logic is completely driven by external
...
you're welcome to study MES compiler implementation if you
like. it is contained in one file (mesengine.d), and is not
that hard to follow.
I hope you didn't write that
On Monday, 19 June 2017 at 20:01:01 UTC, Dan Walmsley wrote:
On Friday, 8 April 2016 at 03:38:01 UTC, Taylor Hillegeist
wrote:
So, for me one of the greatest things about d is that it is
compiled to machine language. But It makes me sad that this
strength doesn't seem to be available in one of
On Wednesday, 2 August 2017 at 13:31:40 UTC, Steven Schveighoffer
wrote:
On 8/1/17 8:34 PM, Mike wrote:
On Tuesday, 1 August 2017 at 14:52:51 UTC, Steven
Schveighoffer wrote:
[...]
I'm not sure my work is worthy of such kind words, but thank
you.
Sorry, it was awesome. You should own
On Monday, 31 July 2017 at 08:51:16 UTC, Mike wrote:
https://github.com/JinShil/svd_to_d
SVD_to_D is a command-line utility that generates D code from
ARM Cortex-M SVD files.
[...]
Reminds me of something I put together a while ago.
https://github.com/taylorh140/SVD_TO_D
But this looks
In the past I have worked with D, C#, Java, Python and C and some
other less popular languages. Most recently working with C# I
suddenly realize the convenience and flexibility I had in D. One
case in particular is with bit-fields in D they are a pleasure to
use and implement, but in C# they
So I have ran into an issue where I want to replace a string with
regex.
but i cant figure out how to replace items followed by a number.
i use "$1001" to do paste first match but this thinks I'm trying
using match 1001
but if i try ${1}001 it gives me an error saying that it cant
match the
On Saturday, 28 May 2016 at 12:27:26 UTC, Stefan Koch wrote:
On Friday, 27 May 2016 at 23:31:24 UTC, Stefan Koch wrote:
On Monday, 9 May 2016 at 16:57:39 UTC, Stefan Koch wrote:
Hi Guys,
I have been looking into the DMD now to see what I can do
about CTFE.
I will post more details as soon
On Friday, 27 May 2016 at 18:10:59 UTC, Vladimir Panteleev wrote:
On Monday, 23 May 2016 at 19:00:40 UTC, Adam D. Ruppe wrote:
Have I gone completely mad?!?!
Yes, though what does it have to do with this thread? :D
This is by far the most appealing way to implement named
arguments that I've
On Tuesday, 17 May 2016 at 14:06:37 UTC, Jack Stouffer wrote:
http://jackstouffer.com/blog/d_auto_decoding_and_you.html
Based on the recent thread in General, I wrote this blog post
that's designed to be part beginner tutorial, part objective
record of the debate over it, and finally my
So, for me one of the greatest things about d is that it is
compiled to machine language. But It makes me sad that this
strength doesn't seem to be available in one of the most obvious
places.
There are some projects:
minilibd:
https://bitbucket.org/timosi/minlibd
The example code is still
SO i have a maximum scope depth tool, that i just put together it
is super simple.
but when i use it in a drive other that C:\ i get an error. Even
though i just checked for a valid path.
Any ideas?
C:\Users\taylor.hillegeist\Documents\CodeSync\D
projects\Toys\TOOLS>NestCheck.exe
On Saturday, 26 March 2016 at 14:15:18 UTC, Laeeth Isharc wrote:
On Saturday, 26 March 2016 at 07:53:06 UTC, Taylor Hillegeist
wrote:
Found a simple way to call .NET managed code from un-managed D
code. I didn't know about it so I thought someone else could
find it useful.
Found a simple way to call .NET managed code from un-managed D
code. I didn't know about it so I thought someone else could find
it useful.
https://github.com/taylorh140/Calling-NET-from-D
On Tuesday, 22 March 2016 at 07:17:41 UTC, Hanh wrote:
Hi all,
I'm trying to process a rather large file as an InputRange and
run into something strange with byChunk / take.
void test() {
auto file = new File("test.txt");
auto input = file.byChunk(2).joiner;
I've been playing around with d with a KL25Z eval board. However
it is not easy, It's not easy to know what features are and are
not usable. when will i get a linker error to some
__eabi_something_not_in_the_runtime.
So, question is, does there exist a minimal runtime that will
work with
On Thursday, 10 March 2016 at 22:07:23 UTC, Andrea Fontana wrote:
On Thursday, 10 March 2016 at 17:43:08 UTC, Taylor Hillegeist
wrote:
I suppose the linker optimized the functions away since they
are now in their own section. But it seems a hacky way to do
this.
AFAIK assert(0) and other
On Thursday, 10 March 2016 at 17:24:51 UTC, Taylor Hillegeist
wrote:
On Thursday, 10 March 2016 at 17:22:58 UTC, Taylor Hillegeist
wrote:
On Thursday, 10 March 2016 at 17:05:26 UTC, Taylor Hillegeist
wrote:
On Thursday, 10 March 2016 at 16:51:32 UTC, Andrea Fontana
wrote:
On Thursday, 10 March
On Thursday, 10 March 2016 at 17:22:58 UTC, Taylor Hillegeist
wrote:
On Thursday, 10 March 2016 at 17:05:26 UTC, Taylor Hillegeist
wrote:
On Thursday, 10 March 2016 at 16:51:32 UTC, Andrea Fontana
wrote:
On Thursday, 10 March 2016 at 16:20:42 UTC, Taylor Hillegeist
wrote:
[...]
I wonder if
On Thursday, 10 March 2016 at 17:05:26 UTC, Taylor Hillegeist
wrote:
On Thursday, 10 March 2016 at 16:51:32 UTC, Andrea Fontana
wrote:
On Thursday, 10 March 2016 at 16:20:42 UTC, Taylor Hillegeist
wrote:
[...]
I wonder if compiler is smart enaugh to undestand that
dependency is not needed
On Thursday, 10 March 2016 at 16:51:32 UTC, Andrea Fontana wrote:
On Thursday, 10 March 2016 at 16:20:42 UTC, Taylor Hillegeist
wrote:
I feel like this should do what i want it too. but it doesn't.
struct Color_t {
static if(1==1){
import std.bitmanip:bitfields;
On Thursday, 10 March 2016 at 04:56:52 UTC, Mike Parker wrote:
On Thursday, 10 March 2016 at 04:07:54 UTC, Taylor Hillegeist
wrote:
So i want bitfields for just a little bit. but i dont want its
dependencies. How is it done. I have tried this. but it doesnt
seem to work on gdc. :(
struct
On Thursday, 10 March 2016 at 04:56:52 UTC, Mike Parker wrote:
On Thursday, 10 March 2016 at 04:07:54 UTC, Taylor Hillegeist
wrote:
So i want bitfields for just a little bit. but i dont want its
dependencies. How is it done. I have tried this. but it doesnt
seem to work on gdc. :(
struct
So i want bitfields for just a little bit. but i dont want its
dependencies. How is it done. I have tried this. but it doesnt
seem to work on gdc. :(
struct Color_t {
static if(__ctfe){
import std.bitmanip:bitfields;
}
mixin(bitfields!(
On Wednesday, 17 February 2016 at 16:13:47 UTC, Taylor Hillegeist
wrote:
On Wednesday, 17 February 2016 at 16:11:44 UTC, Taylor
Hillegeist wrote:
I think the following error message says it all.
std.conv.ConvException@C:\D\dmd2\windows\bin\..\..\src\phobos\std\conv.d(2002):
Unexpected '1'
On Wednesday, 17 February 2016 at 16:11:44 UTC, Taylor Hillegeist
wrote:
I think the following error message says it all.
std.conv.ConvException@C:\D\dmd2\windows\bin\..\..\src\phobos\std\conv.d(2002):
Unexpected '1' when converting from type string to type int
I would expect that 1 would be
I think the following error message says it all.
std.conv.ConvException@C:\D\dmd2\windows\bin\..\..\src\phobos\std\conv.d(2002):
Unexpected '1' when converting from type string to type int
I would expect that 1 would be among the group of expected items.
On Friday, 12 February 2016 at 16:09:36 UTC, Basile Burg wrote:
see https://github.com/BBasile/Coedit/releases/tag/2_gold
I was just overjoyed to install this and hit "w" ctl+space and
see writeln! It takes a bit of effort to get this stuff packaged
so well. Great work!
So I have this code and I have to add the element
.each!(a => a.each!("a"));
to the end in order for it to evaluate the range completely and
act like I expect it too. Is there a better thing to put in the
place of
.each!(a => a.each!("a"));?
import std.stdio;
import std.path;
import
On Saturday, 30 January 2016 at 04:49:39 UTC, Taylor Hillegeist
wrote:
On Saturday, 30 January 2016 at 04:35:29 UTC, Taylor Hillegeist
wrote:
On Saturday, 30 January 2016 at 04:11:07 UTC, Mike Parker
wrote:
[...]
Now I'm wishing that was the problem. Interestingly enough
when i link to a C
On Saturday, 30 January 2016 at 04:11:07 UTC, Mike Parker wrote:
On Saturday, 30 January 2016 at 03:43:59 UTC, Taylor Hillegeist
wrote:
Working through a simple example. I tried the cdecl option but
for some reason i can compile but when i run my Gethello it
cant find the shared library in
On Saturday, 30 January 2016 at 04:35:29 UTC, Taylor Hillegeist
wrote:
On Saturday, 30 January 2016 at 04:11:07 UTC, Mike Parker wrote:
[...]
Now I'm wishing that was the problem. Interestingly enough when
i link to a C shared library it works... but also it isn't show
in the needed shared
On Friday, 29 January 2016 at 01:47:11 UTC, Mike Parker wrote:
On Thursday, 28 January 2016 at 19:49:22 UTC, Taylor Hillegeist
wrote:
On Thursday, 28 January 2016 at 19:33:22 UTC, bearophile wrote:
FreeSlave:
On Thursday, 28 January 2016 at 08:15:38 UTC, FreeSlave wrote:
Not directly. You can
On Thursday, 28 January 2016 at 19:33:22 UTC, bearophile wrote:
FreeSlave:
On Thursday, 28 January 2016 at 08:15:38 UTC, FreeSlave wrote:
Not directly. You can declare cdecl function on Free Pascal
side and call it as extern(C).
What about extern(Pascal)?
Just curious... I had a thought that perhaps since Objective C
was a replacement for Pascal on the mac. that they might have the
same interface. but I'm not savvy enough with fpc to figure out
how to try it.
On Tuesday, 19 January 2016 at 04:58:49 UTC, Walter Bright wrote:
On 1/18/2016 8:03 PM, Manu via Digitalmars-d-announce wrote:
Nice work! Although I've never used C++ exceptions (or D
exceptions) personally.
Is there a roadmap for this stuff I can check out? Short list
of
upcoming C++ work?
So I have seen alot of projects that need the same sort of stuff.
graphics libraries
gui libraries
game libraries
ploting libaries
they would all benefit from a backend solution with a common
interface for
color
fonts
drawing pen_style aliasing etc.
but each one i look at seems to have a
On Wednesday, 23 December 2015 at 23:34:58 UTC, Rikki Cattermole
wrote:
On 24/12/15 8:22 AM, Taylor Hillegeist wrote:
[...]
So far I've been implementing windowing and image libraries for
Phobos.
Right now windowing works on Windows minice eventing. Once
eventing is done it is ready for the
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:07:12 UTC, Basile B. wrote:
On Wednesday, 23 December 2015 at 20:52:05 UTC, Adam D. Ruppe
wrote:
[...]
yes silly, more specially as
- some of them are 2D with FP coordinates
- some of them are 2D with integral coordinates
- some of them are 2D with
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?
Also wouldn't the
On Wednesday, 23 December 2015 at 20:23:25 UTC, rumbu wrote:
On Wednesday, 23 December 2015 at 19:22:01 UTC, Taylor
It was an initiative, but it looks abandoned now (Aurora
Graphics):
Thread:
http://forum.dlang.org/thread/op.w9w0efr1707...@invictus.hra.local
Source Code:
On Wednesday, 23 December 2015 at 20:57:27 UTC, Taylor Hillegeist
wrote:
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
On Sunday, 20 December 2015 at 02:11:58 UTC, Adam D. Ruppe wrote:
dmd minesweeper.d simpledisplay.d color.d
And play the game! At least on Windows and Linux. On Mac, you
need to install XQuartz since I don't have a working Cocoa
implementation in simpledisplay.d right now. Fear not, it is on
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: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
On Tuesday, 8 December 2015 at 15:50:35 UTC, Kagamin wrote:
Oops, no.
next+=dur;
wait(next-now);
call();
what calls does this use from the std library? to get the current
time? Wait a amount of time?
So, I mostly do programming that is of run to completion verity.
But I have a dream of calling functions periodically. So my
question is:
What is the best (most time accurate) way to call a function
every n time units?
What is the best way to measure the jitter of these calls?
I'm also
On Tuesday, 8 December 2015 at 15:35:18 UTC, Taylor Hillegeist
wrote:
So, I mostly do programming that is of run to completion
I took a stab at the problem:
http://dpaste.dzfl.pl/2eef530d00fc
0 nsecs with jitter of :5 nsecs
498937256 nsecs with jitter of :1062744 nsecs
499036173
On Monday, 9 November 2015 at 10:14:17 UTC, Timo Sintonen wrote:
On Monday, 9 November 2015 at 08:49:57 UTC, Andrey wrote:
On Monday, 9 November 2015 at 08:35:01 UTC, Kagamin wrote:
https://github.com/JinShil/D_Runtime_ARM_Cortex-M_study like
this?
Yes. But I mean the real supported library,
On Monday, 9 November 2015 at 20:09:05 UTC, Timo Sintonen wrote:
On Monday, 9 November 2015 at 19:00:32 UTC, Taylor Hillegeist
wrote:
Maybe I am wrong, But I believe that the low level community
is awaiting the release of GDC/LDC compatible with 2.067 DMD
front end. This will allow for
I do not come from a c++ background. but have looked at what
allocators do for c++. I know in D the standard for memory
management is garbage collection and if we want to manage it
ourselfs we have to do things like @nogc. I was just curious how
the std allocator will change how we do things.
On Wednesday, 16 September 2015 at 16:08:47 UTC, Taylor
Hillegeist wrote:
export extern (Windows) void SayHello(Variant *Input_Variant)
{
string A = "HELLO WORLD!";
Input_Variant.CA_VariantSetCString(A.ptr);
}
So I made a terrible error. Looking at
On Monday, 14 September 2015 at 16:59:20 UTC, Adam D. Ruppe wrote:
On Monday, 14 September 2015 at 15:44:36 UTC, Taylor Hillegeist
wrote:
So, Actually I am using NI LabVIEW to interact with my DLL. I
imagine even getting hold of of that would troublesome or
expensive.
Ah, all right. Here's a
On Monday, 14 September 2015 at 15:20:50 UTC, Adam D. Ruppe wrote:
On Monday, 14 September 2015 at 15:14:05 UTC, Taylor Hillegeist
wrote:
Gives a short example but the code doesn't compile for me.
core\stdc\windows\com.d seems to be missing?
I think the doc copy/pasted a typo there. It should
So, I've looked at this topic of COM OLE and activeX, and found
myself confused.
http://dlang.org/interface.html
Gives a short example but the code doesn't compile for me.
core\stdc\windows\com.d seems to be missing? And i cant find any
documentation on core\stdc on the standard library page.
I thought that perhaps spawing a process would work but
execute("PATH TO HTML
FILE",null,Config.none,size_t.max,dirName(exepath));
Didn't seem to work? any ideas?
On Monday, 31 August 2015 at 22:21:20 UTC, Taylor Hillegeist
wrote:
I thought that perhaps spawing a process would work but
execute("PATH TO HTML
FILE",null,Config.none,size_t.max,dirName(exepath));
Didn't seem to work? any ideas?
Actually executeShell worked for me thanks for the
On Monday, 31 August 2015 at 22:24:28 UTC, Adam D. Ruppe wrote:
On Monday, 31 August 2015 at 22:21:20 UTC, Taylor Hillegeist
wrote:
I thought that perhaps spawing a process would work but
Try the browse function from std.process:
http://dlang.org/phobos/std_process.html#browse
What it does
On Wednesday, 12 August 2015 at 22:32:30 UTC, Adam D. Ruppe wrote:
On Wednesday, 12 August 2015 at 22:18:41 UTC, Adam D. Ruppe
wrote:
[...]
Here's an example:
[...]
Wow, very cool thanks!
So i was playing around with the D inline assembly trying to make
it say hello world on my windows setup...
void main(){
asm
{
myhello:
db HELLO, WORLD$;
mov EAX , myhello;
mov AH, 0x09;
int 0x21;
}
}
I figure this should do it. but i'm
On Wednesday, 12 August 2015 at 22:18:41 UTC, Adam D. Ruppe wrote:
On Wednesday, 12 August 2015 at 22:10:32 UTC, Taylor Hillegeist
wrote:
So i was playing around with the D inline assembly trying to
make it say hello world on my windows setup...
Have you ever written assembly for Windows
On Wednesday, 12 August 2015 at 22:14:58 UTC, Justin Whear wrote:
On Wed, 12 Aug 2015 22:10:30 +, Taylor Hillegeist wrote:
I figure this should do it. but i'm running into problems.
Anybody know why?
Describe problems
object.Error@(0): Access Violation
0x00402028
On Wednesday, 29 July 2015 at 11:56:34 UTC, Kagamin wrote:
On Wednesday, 29 July 2015 at 01:55:35 UTC, Joseph Cassman
wrote:
There is probably an obvious reason this is not possible but I
could not see it when reading through the MS licensing
information. It seems to me the linker bin could be
On Thursday, 23 July 2015 at 12:07:21 UTC, Rikki Cattermole wrote:
On 23/07/2015 11:56 p.m., Suliman wrote:
On Thursday, 23 July 2015 at 10:15:17 UTC, Rikki Cattermole
wrote:
So Bin2D[0] has been rewritten and adds a bunch of nice new
features.
- Limit generated code by:
- package modifier
On Thursday, 23 July 2015 at 01:43:56 UTC, Mike Parker wrote:
On Thursday, 23 July 2015 at 01:39:05 UTC, Mike Parker wrote:
post at [1] where Rainer shared the relevant bits of a batch
Gah, hate it when I forget the links.
[1] http://forum.dlang.org/post/m456t5$2jc4$1...@digitalmars.com
On Thursday, 23 July 2015 at 15:39:15 UTC, Taylor Hillegeist
wrote:
On Thursday, 23 July 2015 at 15:23:07 UTC, Taylor Hillegeist
wrote:
I found this nugget in the sc.ini file!
[Environment32mscoff]
LIB=%@P%\..\lib32mscoff
Apparently i need to create a lib32mscoff folder in
C:\D\dmd2\windows\
On Thursday, 23 July 2015 at 14:56:48 UTC, Taylor Hillegeist
wrote:
On Thursday, 23 July 2015 at 01:43:56 UTC, Mike Parker wrote:
[...]
IT worked! Placing this Batch file in the dmd2\src Folder.
-- BEGIN FILE: BUILD.bat
set
On Thursday, 23 July 2015 at 15:23:07 UTC, Taylor Hillegeist
wrote:
I found this nugget in the sc.ini file!
[Environment32mscoff]
LIB=%@P%\..\lib32mscoff
Apparently i need to create a lib32mscoff folder in
C:\D\dmd2\windows\
Well if its not one thing its always another :)
LINK : fatal
I have tried to build this and failed miserably. I have some
questions?
What make do you use? digital mars, gnu. what tools do you need?
is it possible? I also failed to build zlib32coff.lib
make[2]: *** No rule to make target `zlib32mscoff.lib'. Stop.
I could say more but it probably
Beleive it or not the code below does work. However I get an
access violation after every run? any Ideas why?
+Code to Run DLL
function+++
import core.runtime;
import std.stdio;
import core.memory;
import std.c.windows.windows;
int main()
{
On Thursday, 16 July 2015 at 17:28:52 UTC, jklp wrote:
On Thursday, 16 July 2015 at 17:22:50 UTC, jklp wrote:
On Thursday, 16 July 2015 at 17:04:09 UTC, Taylor Hillegeist
wrote:
[...]
Your proto is wrong. Your forgot the FFI convention (__cdecl =
extern(C)).
Try this instead:
---
Thanks! This is really great. Many people under estimate the
usefulness of command line graphics.
When I run the code (compiled on DMD 2.067.1):
--
import std.algorithm;
import std.stdio;
import std.range;
string A=AaA;
string B=BbBb;
string C=CcCcC;
void main(){
int L=25;
int seg1len=(L-B.length)/2;
int seg2len=B.length;
On Wednesday, 1 July 2015 at 17:06:01 UTC, Adam D. Ruppe wrote:
I betcha it is because A, B, and C are modified by the first
pass. A lot of the range functions consume their input.
Running them one at a time produces the same result.
for some reason:
(A.cycle.take(seg1len).array
On Wednesday, 1 July 2015 at 17:00:51 UTC, Taylor Hillegeist
wrote:
When I run the code (compiled on DMD 2.067.1):
--
import std.algorithm;
import std.stdio;
import std.range;
string A=AaA;
string B=BbBb;
string C=CcCcC;
void main(){
So I am aware that Unicode is not simple... I have been working
on a boxes like project http://boxes.thomasjensen.com/
it basically puts a pretty border around stdin characters. like
so:
/\ \
\_|Different all twisty a|
|of in maze are you, |
On Tuesday, 9 June 2015 at 16:30:20 UTC, Namespace wrote:
I'm glad to announce the Beta of Dgame 0.6.0:
https://github.com/Dgame/Dgame/releases
There are some major changes, like Masks for Surfaces, the
AntiAlias and OpenGl Versions enum in GLContextSettings
(previous GLSettings) and so on.
So I found http://ec-lang.org/ it seems alot like D, But it has a
company backing it. It just seems interesting.
On Wednesday, 11 March 2015 at 03:55:21 UTC, Rikki Cattermole
wrote:
On 11/03/2015 4:16 p.m., Taylor Hillegeist wrote:
So I found http://ec-lang.org/ it seems alot like D, But it
has a
company backing it. It just seems interesting.
There is almost no meta programming support. Let alone CTFE.
On Thursday, 5 March 2015 at 20:03:09 UTC, Benjamin Thaut wrote:
Am 05.03.2015 um 21:00 schrieb Taylor Hillegeist:
How to I cast a Int to float without changing its binary
representation?
int someValue = 5;
float sameBinary = *(cast(float*)cast(void*)someValue);
ahh of course! lol :)
How to I cast a Int to float without changing its binary
representation?
So I have played with a few GUI libraries with bindings available
through D. Personally I find that it seems like there is alot of
effort being put forth on GUI projects.
It is my experience that most project's fail or die, not because
of lack of effort but lack of specification, many people
On Tuesday, 3 March 2015 at 10:37:49 UTC, Kagamin wrote:
On Saturday, 28 February 2015 at 17:06:58 UTC, Dicebot wrote:
On Friday, 27 February 2015 at 19:49:37 UTC, Taylor Hillegeist
wrote:
I just think its a shame that all over the place people are
compiling code in different programming
On Tuesday, 3 March 2015 at 18:43:50 UTC, Aram wrote:
Hi all
I've been thinking over a GUI framework for D for some time,
and ended up with idea expressed by Andrew Fedoniouk here:
http://www.digitalmars.com/d/archives/digitalmars/D/32633.html.
That is, having a separate drawing layer, and
On Sunday, 1 March 2015 at 13:13:58 UTC, bearophile wrote:
Jacob Carlborg:
@arc class Foo
{
T1 opAddRef();
T2 opRelease();
}
...
Alternative A gives a clear documentation it's a reference
counted class without having to scan the methods.
Assuming you want something like DIP74, this
On Sunday, 1 March 2015 at 21:39:08 UTC, Mike James wrote:
On Sunday, 1 March 2015 at 20:41:30 UTC, Taylor Hillegeist
wrote:
So I was using the Lazarus IDE the other day, and i thought to
myself, what if i create an application with only a button in
it. well it was easy enough to do. but
On Monday, 2 March 2015 at 01:22:58 UTC, ketmar wrote:
On Sun, 01 Mar 2015 22:40:28 +, Taylor Hillegeist wrote:
But still the question was about smaller executable when
compiling d
code. The linker needs to know which .o files to include, the
pascal
notation is basically:
uses
So I was using the Lazarus IDE the other day, and i thought to
myself, what if i create an application with only a button in it.
well it was easy enough to do. but behold I saw the executable
and it was 14 MB, and I said 'well damn.' It seems to me that
pascal does not do lazy inclusion when
On Friday, 27 February 2015 at 07:26:06 UTC, Jacob Carlborg wrote:
On 2015-02-26 20:53, Taylor Hillegeist wrote:
So, In languages like .net they have dll's that contain not
only
bytecode but also the necessary headers to make them usable in
any .net
language. I was curious if this kind of
1 - 100 of 118 matches
Mail list logo