Re: Visual D released

2010-04-18 Thread Andrej Mitrovic
Awesome! You should post this to reddit/ycombinator, I'm sure there's quite a few people using VStudio that wanted to know more about D (but have been hesitant to give it a fair try because there were no IDE's available).

Re: dmd 1.061 and 2.046 release

2010-05-15 Thread Andrej Mitrovic
Walter Bright Wrote: Jacob Carlborg wrote: On 5/15/10 11:00, Walter Bright wrote: Apple's web site isn't much better, it's got to be the most hard to read site I've ever encountered. The text is a faint grey on white, of all things, and the font is so poorly rendered my eyes turn red and

Re: dmd 1.061 and 2.046 release

2010-05-17 Thread Andrej Mitrovic
Charles Hixson Wrote: The D web pages are a marvel of clarity and utility. Compare them to the Python web pages, which I rate a second best. OT: The funny thing about the Python website, is that I never managed to find a direct link to the package repo (pypi) from the main site. And yet

Re: dmd 1.061 and 2.046 release

2010-05-17 Thread Andrej Mitrovic
Jérôme M. Berger Wrote: Andrej Mitrovic wrote: Charles Hixson Wrote: The D web pages are a marvel of clarity and utility. Compare them to the Python web pages, which I rate a second best. OT: The funny thing about the Python website, is that I never managed to find

Re: D web site facelift

2010-07-03 Thread Andrej Mitrovic
Walter Bright Wrote: David Gileadi was kind enough to spend some time redesigning the look of the D web site. A preview of it is up on d-programming-language.org. This isn't about the content, just the look/style/feel. Comments welcome. Please don't put links to anything other than

Re: D web site facelift

2010-07-03 Thread Andrej Mitrovic
Walter Bright Wrote: Nick Sabalausky wrote: I didn't see any of the glitchiness or google-translate stuff that other people saw (on IE7, FF2, or Iron). Although, from the screenshot someone else posted of the translate-bar, I'm glad it's not showing up for me. (I really wish people

Re: D web site facelift

2010-07-06 Thread Andrej Mitrovic
Andrei Alexandrescu Wrote: On 07/05/2010 02:33 PM, David Gileadi wrote: On 7/5/10 8:51 AM, Andrei Alexandrescu wrote: On 07/05/2010 09:08 AM, David Gileadi wrote: Thanks everyone for your feedback. I sent Walter a new version that addresses some of the issues. Feel free to send one

Re: Emerging Languages Conference next week!

2010-07-17 Thread Andrej Mitrovic
Walter Bright Wrote: I'm speaking at OSCON July 22 at 5:20 about D http://www.oscon.com/oscon2010/public/schedule/grid/2010-07-22 See you there! If anyone is interested, I've emailed the organizers and they said the whole thing will be video recorded (therefore posted online as well).

Re: Goldie v0.3 Release (Parser Library and Tools)

2010-07-25 Thread Andrej Mitrovic
Sweet! I've never heard of GOLD before (I must live in a cave or something..). Thanks for the link to that Bill Baxter presentation btw. Maybe you should to get your engine featured on the GOLD website http://www.devincook.com/goldparser/engine/d/index.htm ? Nick Sabalausky Wrote: I've

Re: dmd 1.063 and 2.048 release

2010-08-11 Thread Andrej Mitrovic
Works for me as well. 2.048 @ Win32. dickl Wrote: On 8/11/2010 1:09 PM, Walter Bright wrote: dickl wrote: I should have been a little more clear, a static this() as a member of a class. Still works: -- H:\cbxtype test.d import std.stdio; void

Re: TDPL sales up from July

2010-08-27 Thread Andrej Mitrovic
Andrei, some spammer keeps removing the errata and putting spam links instead. I can roll back the changes, but he/she will in no doubt spam again. Andrei Alexandrescu Wrote: I thought this might be of interest to the community - as of today, August sales of TDPL from erdani.com redirected

Re: TDPL sales up from July

2010-08-27 Thread Andrej Mitrovic
I've reverted the change, you can see the history and the previous change for the spam: http://erdani.com/tdpl/errata/index.php?title=Main_Pageoldid=55 http://erdani.com/tdpl/errata/index.php?title=Main_Pageoldid=49 Andrej Mitrovic Wrote: Andrei, some spammer keeps removing the errata

Re: TDPL sales up from July

2010-08-27 Thread Andrej Mitrovic
auto newErrata = const(oldErrata); Btw, glad the sales are up, the book is really enjoyable to read. Andrei Alexandrescu Wrote: On 8/27/10 12:35 PDT, Andrej Mitrovic wrote: I've reverted the change, you can see the history and the previous change for the spam: http://erdani.com/tdpl

Re: Something

2010-12-07 Thread Andrej Mitrovic
Although this is way over my league (I've never used functional languages before), I guess invariants could help in maintaining a type with certain properties of those dependent types..? Well, most of the papers that describe dependent types (that I've glanced over) use functional languages and a

Re: Announcing: D support in SWIG

2010-12-08 Thread Andrej Mitrovic
On 11/24/10, BLS windev...@hotmail.de wrote: Hi David, let me shake your hands and say Thank You, GREAT work. It was a bit difficult to build SWIG SVN on Windows. Just finding those automake/autoconf/bison binaries is a detectives' work. How did u build from svn?

Re: Announcing: D support in SWIG

2010-12-08 Thread Andrej Mitrovic
Am I supossed to use --with-d2-compiler=C:\DMD\dmd2\windows\bin\dmd.exe or just --with-d2-compiler=C:\DMD\ path when calling configure? On 12/8/10, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: Okay, got it working now. I've installed MinGW (again) via that new mingw-get installer from

Re: Announcing: D support in SWIG

2010-12-08 Thread Andrej Mitrovic
, but great work klickverbot!! On 12/8/10, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: Am I supossed to use --with-d2-compiler=C:\DMD\dmd2\windows\bin\dmd.exe or just --with-d2-compiler=C:\DMD\ path when calling configure? On 12/8/10, Andrej Mitrovic andrej.mitrov...@gmail.com wrote

Re: Announcing: D support in SWIG

2010-12-09 Thread Andrej Mitrovic
, Andrej Mitrovic wrote: I'm curious, can you use SWIG with D2 on Linux as well? From what I've read so far in the docs, SWIG creates an extension module that can be compiled as a dynamic library. But afaik there are some issues with using dynamic libs in Linux with D2, at least that's what I've

Re: Announcing: D support in SWIG

2010-12-09 Thread Andrej Mitrovic
documentation, klickverbot! On 12/10/10, BLS windev...@hotmail.de wrote: On 09/12/2010 23:47, Andrej Mitrovic wrote: I'm thinking maybe we should have a SWIG interfaces project on dsource, if one doesn't exist yet. If someone made SWIG interfaces for some big library it would be cool to share it at one

Re: Announcing: D support in SWIG

2010-12-09 Thread Andrej Mitrovic
Yeah, maybe dsource wasn't such a good idea. It does have a lot of dead projects and nobody wants to put up categories to split up D1/D2 projects (and the forums are slw). Maybe a better solution is to just add any new interfaces to a D Wiki page @ http://www.prowiki.org/wiki4d/wiki.cgi On

Re: Announcing: D support in SWIG

2010-12-10 Thread Andrej Mitrovic
On 12/10/10, BLS windev...@hotmail.de wrote: On 08/12/2010 20:35, Andrej Mitrovic wrote: I did a configure with: --with-d2-compiler=C:\DMD\dmd2\windows\bin\dmd.exe and make to build swig. Guess you mean .. --with-d2-compiler=C:/DMD/dmd2/windows/bin/dmd.exe Bjoern Backslashes worked fine

Re: D compiler as part of GCC

2010-12-13 Thread Andrej Mitrovic
Must be a very simple language.. and Google probably pulled some strings, or they have someone that worked/collaborated with GCC devs? dunno.. On 12/13/10, Bee iteronve...@gmail.com wrote: How the hell is Go already part of the main GCC distribution? It's only a year old! If I've got this

Re: DVM - D Version Manager

2011-01-25 Thread Andrej Mitrovic
Personally I use Console2, and I've a hotkey to open a DMD session (it just adds DMD to path really).

Re: DVM - D Version Manager

2011-01-25 Thread Andrej Mitrovic
It's good old Pascal, much hated by C wizards. :D

Re: D Programming Language source (dmd, phobos, etc.) has moved to github

2011-01-25 Thread Andrej Mitrovic
As far as I can tell hg stores both a commit number and a hash, e.g.: D:\dev\projects\projecthg log -r : changeset: 0:08d729df85c9 user:Andrej Mitrovic andrej.mitrov...@gmail.com date:Fri Dec 22 00:07:02 2010 +0200 summary: bla bla changeset: 1:61cfebefee15 user

Re: New web newsreader - requesting participation

2011-01-31 Thread Andrej Mitrovic
Word wrapping, please! Looks cool so far.

Re: New web newsreader - requesting participation

2011-01-31 Thread Andrej Mitrovic
8. Search functionality digitalmars uses google for searching the NG archive, but I've no idea how to do custom searches. I.e. I'd like to search for a keyword in the topic title only, how would I do that?

Re: New web newsreader - requesting participation

2011-02-01 Thread Andrej Mitrovic
On 2/1/11, Trass3r u...@known.com wrote: Speaking of newsgroup web interface, interestingly while the main D site points to this crappy reader: http://www.digitalmars.com/pnews/indexing.php?server=news.digitalmars.comgroup=digitalmars.D.announce there still is a hidden one which is much better

Re: New web newsreader - requesting participation

2011-02-01 Thread Andrej Mitrovic
On 2/1/11, Andrew Wiley debio...@gmail.com wrote: I'm not sure what you mean. I have my Gmail account subscribed to the mailing lists, and everything seems fine? When you start a new topic it doesn't show up in Gmail. Well, maybe they've fixed that recently? I haven't tried in a while, but it

Re: Alternative linker win32/64

2011-02-18 Thread Andrej Mitrovic
Is there even such a thing as Win64 OMF?

Re: Plot2kill 0.2

2011-03-05 Thread Andrej Mitrovic
The GUI lib DFL uses callbacks as well IIRC. Probably not a range of them though. I do know that in Qt you can have a signal attached to multiple slots.

Re: Release: GDC for Windows

2011-03-21 Thread Andrej Mitrovic
Woho!

Re: Release: GDC for Windows

2011-03-22 Thread Andrej Mitrovic
I'm rooting for GDC as well. I just had another Optlink crash, yay. :/ So the GCC tools and its linker look like a nice alternative.

Re: Release: GDC for Windows

2011-03-23 Thread Andrej Mitrovic
I think you need to add GDC's /bin to path.

Re: Release: GDC for Windows

2011-03-25 Thread Andrej Mitrovic
Apparently there is a way to strip the debuggin info and put it in another file, and then link the executable to the debug file so GDB can automatically load it. But this doesn't seem to work for me: gdc -g foo.d -o foo.exe objcopy --only-keep-debug foo.exe foo.debug strip -g foo.exe objcopy

Re: TDPL translated in Korean

2011-03-27 Thread Andrej Mitrovic
On 3/26/11, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: if any Korean readers are out there, I'd be delighted to see at least what the cover looks like. If it's North Korea you're talking about, I think we know what the cover will look like. :p

Re: GtkD 1,4 released.

2011-03-28 Thread Andrej Mitrovic
How is coding with GtkD like? Does it need any special treatment, like having to use RAII and taking care of resources by hand? IIRC Gtk is a C library and GtkD is a class-based wrapper around it? Anyhow that's great news!

Re: GtkD 1,4 released.

2011-03-29 Thread Andrej Mitrovic
On 3/29/11, Mike Wey mike-...@example.com wrote: There used to be a video editor named Pihlaja but i don't know if it's still maintained. Looks like this is it: http://vimeo.com/471546 and some `Rae` gui library: http://vimeo.com/6918620 It looks quite nice.

Re: Mago, a Windows debugger for the D programming language [video]

2011-03-31 Thread Andrej Mitrovic
Reddit seems down. Is there a direct link to the video?

Re: Mago, a Windows debugger for the D programming language [video]

2011-03-31 Thread Andrej Mitrovic
Ok its up again, link is: http://vimeo.com/21323893

Re: D Article Contest - win an iPad2

2011-03-31 Thread Andrej Mitrovic
What about tutorials? Allowed?

Re: D Article Contest - win an iPad2

2011-03-31 Thread Andrej Mitrovic
*When I say tutorials I don't mean tutorials on the language itself. But a tutorial on how to create some type of software by using D.

Re: Plot2kill 0.2

2011-04-03 Thread Andrej Mitrovic
@dsimcha: I can't compile your demotest from plot2kill, using gtkD and D2: ..\lib\plot2kill.lib(gtkwrapper) Error 42: Symbol Undefined _D5cairo12ImageSurface12ImageSurface7__ClassZ ..\lib\plot2kill.lib(gtkwrapper) Error 42: Symbol Undefined

Re: Plot2kill 0.2

2011-04-03 Thread Andrej Mitrovic
Also I'm on XP32.

Re: Plot2kill 0.2

2011-04-03 Thread Andrej Mitrovic
Sorry, I think these are gtkD-specific issues, not plot2kill. I've had another problem building a cairo example project from gtkD, which I've reported.

Re: Plot2kill 0.2

2011-04-04 Thread Andrej Mitrovic
Ok thanks for letting me know.

D Videos are now linked on the Wiki4D site

2011-04-05 Thread Andrej Mitrovic
Link: http://prowiki.org/wiki4d/wiki.cgi?Videos There are numerous D-related videos scattered throughout the web. Some are linked on conference pages, others are linked from various blogs. I've collected as many as I could find, and I've put them in a table at the wiki4d site. Some slides have

Re: D Videos are now linked on the Wiki4D site

2011-04-05 Thread Andrej Mitrovic
The name is Tomasz Stachowiak. It's also displayed at the beginning of the video. :) Thanks, fixed.

Re: [Article Context, First Draft] Concurrency, Parallelism and D

2011-04-09 Thread Andrej Mitrovic
On 4/10/11, dsimcha dsim...@yahoo.com wrote: == Quote from Andrei Alexandrescu (seewebsiteforem...@erdani.org)'s Just googled it now, it's quite a story. Found among other things a Wikipedia page dedicated entirely to the topic! http://en.wikipedia.org/wiki/Serial_comma Above all, it's your

Re: [Article Context, First Draft] Concurrency, Parallelism and D

2011-04-09 Thread Andrej Mitrovic
Btw, excellent article. ^^

Re: Goldie Parsing System v0.4 Released - Now for D2

2011-04-14 Thread Andrej Mitrovic
So could your library be used to implement an alternative for HTOD? Or more simply put, could I use this to do (simple) transformations of C code?

Re: Goldie Parsing System v0.4 Released - Now for D2

2011-04-15 Thread Andrej Mitrovic
I've used your tool yesterday. I used it on a simple C file with the ANSI C grammar from the gold website. It does seem to work fine, but yeah I have to preprocess a C file first (I've spent so much time with D that I almost completely forgot about the C preprocessor in the first place). I've

Re: Goldie Parsing System v0.4 Released - Now for D2

2011-04-15 Thread Andrej Mitrovic
What I meant was that code like this will throw if MyType isn't defined anywhere: int main(int x) { MyType var; } goldie.exception.UnexpectedTokenException@src\goldie\exception.d(35): test.c(3:12): Unexpected Id: 'var' It looks like valid C /syntax/, except that MyType isn't defined. But

Re: Patterns of Human Error - my presentation at the DC ACM

2011-05-06 Thread Andrej Mitrovic
Is that a typo on page 31? = should be = maybe = should be I guess that further drives the point though. :)

Re: Patterns of Human Error - my presentation at the DC ACM

2011-05-06 Thread Andrej Mitrovic
I still giggle at the long long name. Good thing there are no floats floats and char chars.

Re: dmd 1.068 and 2.053 release

2011-05-13 Thread Andrej Mitrovic
133 bytes? Something went wrong with that ftp for DMD2.

Re: dmd 1.068 and 2.053 release

2011-05-13 Thread Andrej Mitrovic
I'm referring to http://ftp.digitalmars.com/dmd.2.053.zip. You've posted the wrong links in your post btw.

Re: dmd 1.068 and 2.053 release

2011-05-14 Thread Andrej Mitrovic
On 5/14/11, bearophile bearophileh...@lycos.com wrote: Walter: http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.053.zip I especially like the stack trace on Windows. Do you get the symbol names displayed without running cv2pdb on the exe?

Re: dmd 1.068 and 2.053 release

2011-05-14 Thread Andrej Mitrovic
Hmm.. so it might be an XP issue. I'll give Win7 a try later.

Re: dmd 1.068 and 2.053 release

2011-05-15 Thread Andrej Mitrovic
/symbols/debuggers/dbg_x86_6.11.1.404.msi There is a newer version available, but it seems you have to install the full Windows SDK for this. Andrej Mitrovic wrote: Hmm.. so it might be an XP issue. I'll give Win7 a try later. No, I have had version 6.12.2.633 installed. I also gave your older

Re: dmd 1.068 and 2.053 release

2011-05-15 Thread Andrej Mitrovic
A simple app like: void foo() { throw new Exception(); } void main() { foo(); } $ dmd -debug -g testexc.d testexc.exe: D:\dev\code\d_codeobject.Exception@testexc.d(3): 40CD40 40CBB7 4025EB 4021E7 411FC1 $ cv2pdb testexc.exe testexc.exe $ testexc.exe

Re: Unofficial Article Contest Submission Wiki

2011-05-19 Thread Andrej Mitrovic
I think this was a submission too: http://octarineparrot.com/article/view/getting-more-fiber-in-your-diet

Re: Learning With D

2011-05-23 Thread Andrej Mitrovic
I think the biggest confusion about pointers comes from its C syntax. Otherwise the concept is pretty simple. The best way to explain it is with a lot of short code samples and maybe even some simple diagrams. Forget trying to explain pointers with walls of text and pretty language.

Re: Learning With D

2011-05-23 Thread Andrej Mitrovic
I think at the end of the day feedback from beginners reading the book or tutorial is the most valuable thing to have. With an online version of a book you could add extra clarification for some topics if newbies end up being confused or didn't grasp a concept in full. I rarely see this happen

Re: Short article on std.parallism

2011-05-29 Thread Andrej Mitrovic
Very cool article. :) Btw, you can omit 'auto' when you use 'immutable' declarations.

Re: Short article on std.parallism

2011-05-30 Thread Andrej Mitrovic
On 5/30/11, Vladimir Panteleev vladi...@thecybershadow.net wrote: On Mon, 30 May 2011 04:18:14 +0300, Jeremy Wright jer...@codestrokes.com wrote: I implemented bucket sort in D to demonstrate how easy it is to use std.parallelism. I welcome any feedback. One thing: I would suggest to avoid

Re: Short article on std.parallism

2011-05-31 Thread Andrej Mitrovic
Why doesn't Appender overload opCatAssign? It would be almost trivial to replace usage of existing arrays with Appender, instead of having to replace all calls with var.put(). And why doesn't it overload toString? You can't print its contents to stdout like you can with slices. And why can't you

Re: Unofficial DVM Windows Beta

2011-06-04 Thread Andrej Mitrovic
Some notes: Calling dvm regardless of arguments always prints out this string at the bottom after any info before it: The system cannot find the file specified. Calling with -h or --help doesn't print out anything. Calling dvm install or dvm fetch or dvm use without arguments throws an out of

Re: Unofficial DVM Windows Beta

2011-06-04 Thread Andrej Mitrovic
P.S. Turns out I'm a little silly for not realizing that I can use 'dvm install 2.053', since it was mentioned in your post.

Re: Unofficial DVM Windows Beta

2011-06-04 Thread Andrej Mitrovic
I'm ok with appdata as long as it works for everyone. I guess it should, maybe I'm just being paranoid that it won't. (I'll test it out soon on win7 and report). Otherwise polluting home on Windows is kind of ugly, I'm sure Nick will agree. :)

Re: Unofficial DVM Windows Beta

2011-06-04 Thread Andrej Mitrovic
I get the same The system cannot find the file specified. on Win7 at the end of invoking dvm. UAC seems to be ok with installing in appdata. Btw, is there a shortcut for getting the latest DMD release? E.g. something like: dvm install 2.x, for the latest 2.x release? Also I still can't get

Re: Unofficial DVM Windows Beta

2011-06-04 Thread Andrej Mitrovic
On 6/4/11, Nick Sabalausky a@a.a wrote: It *should* have two things (separated by semicolon): %APPDATA%\dvm\compilers\dmd-{default dmd version}\bin %APPDATA%\dvm\bin Yep, the first one points to the 2.052 install if I default select that. But 2.053 gets run. Is this because I have 2.053

Re: Unofficial DVM Windows Beta

2011-06-04 Thread Andrej Mitrovic
System PATH: D:\DMD\dmd2\windows\bin User PATH: %DVM% User DVM: C:\Documents and Settings\Andrej\Application Data\dvm\compilers\dmd-2.052\bin C:\Documents and Settings\Andrej\Application Data\dvm\bin From what I can tell user variables should override system ones?

Re: Unofficial DVM Windows Beta

2011-06-04 Thread Andrej Mitrovic
Ah, this explains it: echo %PATH% ...D:\DMD\dmd2\windows\bin;..C:\Documents and Settings\Andrej\Application Data\dvm\compilers\dmd-2.052\bin;C:\Documents and Settings\Andrej\Application Data\dvm\bin So apparently system vars come first. Hm..

Re: Unofficial DVM Windows Beta

2011-06-04 Thread Andrej Mitrovic
Have I been putting all of my executables in the wrong path? I've always put them in the system path instead of the user one, maybe I've been doing it wrong. :)

Re: Unofficial DVM Windows Beta

2011-06-04 Thread Andrej Mitrovic
Yeah this all makes much more sense now. I've tried DVM install and DVM will add %DVM% in PATH before all other path names, which overrides them. I think I just had the bad habit of putting everything in the system variables.

Re: Unofficial DVM Windows Beta

2011-06-04 Thread Andrej Mitrovic
I think this might be a cool place to link DVM from: http://prowiki.org/wiki4d/wiki.cgi?action=browseamp;id=D__Tutorial/StartingWithD/Compiler/DMDamp;oldid=D__Tutorial/InstallingDCompiler

Re: DVM Windows Beta #2 - Up To Date With v0.2.0

2011-06-07 Thread Andrej Mitrovic
I can already put this tool to good use. I've had DDMD fail to compile for me, so I just did a 'dvm install 2.051' and 'dvm use 2.051', rerun the build script and it then compiles again. Huge time-saver, imo!

Re: DVM Windows Beta #2 - Up To Date With v0.2.0

2011-06-07 Thread Andrej Mitrovic
Yes I've also tried doing a clean install and -h didn't do anything.

Re: short thoughts on D (like my twitter)

2011-06-11 Thread Andrej Mitrovic
On 6/11/11, Sean Kelly s...@invisibleduck.org wrote: How about drdobbs.com? Short-form entries are common there. After they've completely screwed up all the existing links to old articles, I don't know why anyone would want to write there.

Re: TDPL is an Amazon Kindle bestseller

2011-06-19 Thread Andrej Mitrovic
They won't die out. They'll just become rarer. Just like vinyl (and you can still buy vinyl!).

Re: TDPL is an Amazon Kindle bestseller

2011-06-20 Thread Andrej Mitrovic
Speaking of DRM, I can't believe Sony is so dumb as to block videos on youtube from being seen from other countries. How is that going to make me want to buy their music? Same goes for other major labels. They might as well put a message on the video: We don't think you deserve to watch our music

Programming Windows D Examples are now Online!

2011-06-20 Thread Andrej Mitrovic
This is a translation project of Charles Petzold's Programming Windows (5th edition) book code samples. Currently over 120 code samples have been translated into D, with only a few modules remaining. Everything else you need to know is in the Readme file:

Re: Programming Windows D Examples are now Online!

2011-06-20 Thread Andrej Mitrovic
On 6/21/11, Walter Bright newshou...@digitalmars.com wrote: This is nice work. When you're done, let's post a link on Reddit! Let's shake the bees nest? :p I'll have to make some kind of workaround for D DLLs for a few examples. I'll see about doing this these days. There's a few audio examples

Re: Programming Windows D Examples are now Online!

2011-06-21 Thread Andrej Mitrovic
I completey forgot about single-project compilation yesterday. I've pushed a new changeset which allows you to build each project alone by CD-ing to the directory and building, e.g.: $ cd C:\Documents and Settings\Andrej\Desktop\WinAPI\Samples\Chap01\HelloMsg $ rdmd ..\..\..\build.d %cd% The

Re: Programming Windows D Examples are now Online!

2011-06-21 Thread Andrej Mitrovic
On 6/21/11, zhang bitwo...@qq.com wrote: That's great! I'm porting the Scintilla which is an editor library. I think I can get benefit from your works greatly. -- Zhang bitwo...@qq.com Nice! Btw, I have DSciteWin in my projects too: https://github.com/AndrejMitrovic/dscitewin But

Re: Programming Windows D Examples are now Online!

2011-06-21 Thread Andrej Mitrovic
On 6/21/11, bearophile bearophileh...@lycos.com wrote: I am not asking you to modify the code, but D with() was designed to reduce noise in code like: wndclass.style = CS_HREDRAW | CS_VREDRAW; wndclass.lpfnWndProc = WndProc; wndclass.cbClsExtra = 0; wndclass.cbWndExtra = 0;

Re: Programming Windows D Examples are now Online!

2011-06-21 Thread Andrej Mitrovic
On 6/21/11, zhang bitwo...@qq.com wrote: That's great! I'm porting the Scintilla which is an editor library. I think I can get benefit from your works greatly. -- Zhang bitwo...@qq.com Btw, I'd like to know more about this. Is it an open-source project? Will it be hosted somewhere?

Re: Programming Windows D Examples are now Online!

2011-06-21 Thread Andrej Mitrovic
On 6/21/11, Walter Bright newshou...@digitalmars.com wrote: On 6/20/2011 10:11 PM, Andrej Mitrovic wrote: Btw, would it be good idea to link this somewhere on the homepage? Sure! Wanna generate a pull request? Yeah I'll cook something up and make a pull. Btw, std.c.windows.windows

Re: Programming Windows D Examples are now Online!

2011-06-21 Thread Andrej Mitrovic
On 6/21/11, bearophile bearophileh...@lycos.com wrote: After translating so much code have you seen some recurring patterns in your code conversion bugs? A lot of C code is missing default labels. I've used the github 2.054 clone to compile all examples in order to catch missing labels at

Re: Programming Windows D Examples are now Online!

2011-06-21 Thread Andrej Mitrovic
On 6/21/11, Walter Bright newshou...@digitalmars.com wrote: Fix: char[100] buffer = 0; I didn't know about this syntax! I've been under a rock apparently. Fix: char[100] buffer; APIWriteToBuffer(buffer.ptr); auto p = buffer[0 .. strlen(buffer.ptr)];

Re: Programming Windows D Examples are now Online!

2011-06-21 Thread Andrej Mitrovic
On 6/21/11, Jonathan M Davis jmdavisp...@gmx.com wrote: stride isn't a UTF version of strlen. Brain misshap, I meant std.utf.count.

Re: Programming Windows D Examples are now Online!

2011-06-21 Thread Andrej Mitrovic
Walter, would it be possible to make .map file generation follow the -od flag? It's odd when a build script fills a directory with map files while executables and object files are properly in their own directories as specified via -od and -of flags. Btw, I have just pushed a changeset and made

Re: Programming Windows D Examples are now Online!

2011-06-21 Thread Andrej Mitrovic
On 6/21/11, Daniel Gibson metalcae...@gmail.com wrote: The README mentions 2.043 instead of 2.053. Fixed, thanks.

Re: Programming Windows D Examples are now Online!

2011-06-21 Thread Andrej Mitrovic
On 6/21/11, Brad Roberts bra...@puremagic.com wrote: Fixed in 2.053. See also bug 4833. Well that's odd because the script still generates map files in the root directory of the script file even though I'm using -od and -of, and I'm using 2.053. I've added a cleanup call after each sample is

Re: Programming Windows D Examples are now Online!

2011-06-21 Thread Andrej Mitrovic
Wait, I'm using 2.054 from github. This might be a regression. I'll investigate.

Re: Programming Windows D Examples are now Online!

2011-06-21 Thread Andrej Mitrovic
No I've tested with 2.053 and it still generates a map file. I'll reopen that report.

Re: Programming Windows D Examples are now Online!

2011-06-21 Thread Andrej Mitrovic
On 6/21/11, Robert Clipsham rob...@octarineparrot.com wrote: I use D as a build script for my project too, it's awesome how easy it is to make the build parallel, and how much compilation time it saves! Yeah, true words right there. RDMD is what makes everything run so smooth, it feels like

Re: Programming Windows D Examples are now Online!

2011-06-21 Thread Andrej Mitrovic
Ok I've made most of the examples unicode safe now by using std.utf.count instead of .length. The changesets are online.

Re: Programming Windows D Examples are now Online!

2011-06-21 Thread Andrej Mitrovic
On 6/21/11, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: On 6/21/11, Jonathan M Davis jmdavisp...@gmx.com wrote: stride isn't a UTF version of strlen. Brain misshap, I meant std.utf.count. Double brain misshap. I wasn't looking for code-point count of a D string, but of a zero

  1   2   3   4   5   6   >