Re: howto recompile dmd 2.053 for CentOS 5.x?

2011-05-25 Thread Lars Holowko
On Tue, May 24, 2011 at 5:30 PM, Nick Sabalausky a@a.a wrote: The DMD zips contain all the source code. You should be able to do this: - Unzip dmd.2.053.zip (or whatever other version you want) - Go into the 'src/dmd' directory - Compile dmd (For me, it's just make -f linux.mak, but I'm on a

Re: Get single keystroke?

2011-03-21 Thread Lars Holowko
On Mon, Mar 21, 2011 at 1:33 PM, Sean Eskapp eatingstap...@gmail.com wrote: Is there a way to get a single keystroke in D2? Any method I've tried requires pushing Enter before the stroke is registered. Hi Sean, what you want to do is OS dependent. I needed something similar ('press key to

How-to manipulate a C array with D2 vector operations?

2011-02-28 Thread Lars Holowko
Hi I am trying to implement a D2 function that has this C signature (it gets called from a C module and I cannot change the caller): extern(C) read_into(char *buffer, size_t buf_len); I would like to use D's vector (or array-wise according to TDPL) operations on buffer but I cannot find a way,

Re: How-to manipulate a C array with D2 vector operations?

2011-02-28 Thread Lars Holowko
On 2/28/2011 10:15 AM, Denis Koroskin wrote: On Mon, 28 Feb 2011 19:51:28 +0300, Lars Holowko lars.holo...@gmail.com wrote: gets called from a C module and I cannot change the caller): extern(C) read_into(char *buffer, size_t buf_len); I would like to use D's vector (or array-wise according