Re: reference to 'self' inside a function

2012-07-18 Thread Kevin Cox
On Jul 18, 2012 6:20 AM, FeepingCreature default_357-l...@yahoo.de wrote: On 07/18/12 01:05, Kevin Cox wrote: What about how JavaScript does it. Anonymous functions can still have a name that can be used from inside of a function to refer to itself. Sadly, this collides with the return

Re: reference to 'self' inside a function

2012-07-17 Thread Kevin Cox
On Jul 17, 2012 1:00 PM, angel andrey.gel...@gmail.com wrote: I propose to introduce a reference to the current function, much like 'this' in a class method. Call it 'self' or 'thisFunc', or whatever ... What might this be good for ? For implementing recursion in a lambda function. Writing in

Re: reference to 'self' inside a function

2012-07-17 Thread Kevin Cox
On Jul 17, 2012 6:50 PM, Era Scarecrow rtcv...@yahoo.com wrote: On Tuesday, 17 July 2012 at 22:13:13 UTC, Eyyub wrote: On Tuesday, 17 July 2012 at 16:56:17 UTC, angel wrote: I propose to introduce a reference to the current function, much like 'this' in a class method. Call it 'self' or

Re: D versionning

2012-07-16 Thread Kevin Cox
On Jul 16, 2012 4:15 AM, Jacob Carlborg d...@me.com wrote: On 2012-07-16 08:51, Walter Bright wrote: It is a good idea, but I'd be nervous myself about allowing the compiler to edit my code :-) Don't you trust your own compiler :) The compiler could have --dry-run option to show what

Re: D front-end in D for D

2012-07-14 Thread Kevin Cox
On Jul 14, 2012 9:15 AM, David d...@dav1d.de wrote: Run-time mixins can be used for incredibly powerful stuff, yet the same run-time mixins can be used for incredibly dangerous stuff. Just don't use them if you don't know exactly what you're doing. :-) I don't see any case where a

Re: No D-C++, right?

2012-07-13 Thread Kevin Cox
On Jul 13, 2012 3:45 PM, Nick Sabalausky seewebsitetocontac...@semitwist.com wrote: Am I correct in my understanding that we still don't have a reliable tool to translate a D source to C or C++? Can LDC/GDC do anything like that? (Doesn't LLVM have a C-outputting backend?) Yes LLVM does. I

Re: Reading file contents when file has changed

2012-07-13 Thread Kevin Cox
On Jul 13, 2012 4:40 PM, OlaOst ola...@gmail.com wrote: I'm working on a program (using dmd 2.059 under windows) that automatically reloads the contents of a file if it has changed, by checking the last modified timestamp on the file every 0.2 seconds, then using the readText function in

Re: What was the reason for not including std.net.curl in the Windows phobos library?

2012-07-07 Thread Kevin Cox
On Jul 7, 2012 8:45 AM, Gary Willoughby d...@kalekold.net wrote: What was the reason for not including 'std.net.curl' in the Windows phobos library? IIRC it is licencing issues, they can't include curl in the distribution without certain requirements that were deemed to awkward to implement.

Re: getcwd behaves inconsistent?

2012-06-19 Thread Kevin Cox
On Jun 19, 2012 11:03 PM, BLM768 blm...@gmail.com wrote: Is there any chance of this code being added to Phobos? I think it would get a fair bit of use. +1 I think locating the executable is a common task.

Re: getcwd behaves inconsistent?

2012-06-17 Thread Kevin Cox
On Jun 17, 2012 6:42 PM, Stephen Jones siwe...@gmail.com wrote: I recently switched from Eclipse to monoD and found that all my code to images etc was invalid because getcwd returns the directory that contains the main entry code in Eclipse, but returns the directory that contains the executable

Re: Review: std.uuid

2012-06-13 Thread Kevin Cox
On Jun 13, 2012 7:23 AM, Kagamin s...@here.lot wrote: If we use all caps for abbreviations then the names should be SHA1UUID, MD5UUID and UUIDVersion? I believe tr naming scheme is acronyms have the same case. So if an acronym is first it is all lowercase otherwise all uppercase.

Re: floats default to NaN... why?

2012-06-07 Thread Kevin Cox
On Jun 7, 2012 9:53 PM, Minas minas_mina1...@hotmail.co.uk wrote: I agree that the default value for floats/doubles should be zero. It feels much more natural. I think the problem here is that people are thinking about some stuff too much. D is a rather new language that wants to be practical.

Re: Increment / Decrement Operator Behavior

2012-06-04 Thread Kevin Cox
On Jun 4, 2012 8:43 PM, Xinok xi...@live.com wrote: I wonder in that case, is it even worth including in the language? For me anyways, the whole point of these operators is to use them in expressions. Otherwise, why not simply write (i+=1)? For pointers they are useful because they go up in

Re: Where is naming convention?

2012-06-02 Thread Kevin Cox
On Jun 2, 2012 1:54 AM, Jonathan M Davis jmdavisp...@gmx.com wrote: No. It simply means that all of the letters of an acronym are always the same case. So, you'd have class ASCIIException {} void funcASCII() {} int asciiVar; enum UTFEnum { asciiEnum, utfEnum } Oh, good solution, I could

Re: SetTimer function not found?

2012-06-02 Thread Kevin Cox
On Jun 2, 2012 6:33 AM, John Chapman johnch_a...@hotmail.com wrote: On Saturday, 2 June 2012 at 10:11:02 UTC, Godlike wrote: On Saturday, 2 June 2012 at 10:00:07 UTC, Martin Nowak wrote: Just add these declarations to the appropriate module: extern(Windows) { alias void function(HWND,

Re: Static function conflicts with Non-Static?!

2012-06-02 Thread Kevin Cox
On Jun 2, 2012 6:38 AM, bearophile bearophileh...@lycos.com wrote: Jonathan M Davis: Personally, I wish that it weren't legal to call a static function with an object and that you had to explicitly use the class, I agree. Bye, bearophile Same here, D 3.0?

Re: dget - getting code from github

2012-05-24 Thread Kevin Cox
On May 24, 2012 6:43 AM, Tobias Pankrath tob...@pankrath.net wrote: On Thursday, 24 May 2012 at 09:50:33 UTC, Russel Winder wrote: On Thu, 2012-05-24 at 10:34 +0200, Paulo Pinto wrote: [...] Every time I need to do something in an language without official package manager support, I curse

Re: dget - getting code from github

2012-05-24 Thread Kevin Cox
On May 24, 2012 7:03 AM, Jacob Carlborg d...@me.com wrote: Mac OS X doesn't have one out of the box, App Store doesn't count. -- /Jacob Carlborg IIRC there is one that a ton of people use, is it called macports?

Re: dget - getting code from github

2012-05-24 Thread Kevin Cox
On May 24, 2012 7:08 AM, Tobias Pankrath tob...@pankrath.net wrote: I'm using arch, too. The problem are the people, who don't :-) I know what you are saying but package managers were beautiful things that made it stupidly simple to install software. But we are slowly going back to windoze

Re: Nimrod language

2012-05-24 Thread Kevin Cox
On May 24, 2012 6:53 PM, Froglegs lug...@yahoo.com wrote: Like the design, syntax is way better than D But half of what makes a language are the compilers/debuggers/tool I like many ideas of the language but there are some show-stoppers for me. For example the fact that you have to define

Re: D under Linux Mint

2012-05-23 Thread Kevin Cox
On May 23, 2012 5:48 PM, snow marcel.patzw...@googlemail.com wrote: Hello, Ive tried to install D under Linux and followed the steps described on . this page http://dlang.org/dmd-linux.html . I checked all folders after every step and everything is where it should be. In the secound step I

Re: Is the D community lacking development tools?

2012-05-22 Thread Kevin Cox
On May 22, 2012 12:13 PM, s s...@one.com wrote: +1 for a GUI lib, which is in sync with DMD releases. Is there any way to bind Qt without the dreaded moc and friends? Because that would give you a cross platform solution without too much work.

Re: [OT] GitHub down?

2012-05-11 Thread Kevin Cox
On May 11, 2012 5:53 PM, Alex Rønne Petersen xtzgzo...@gmail.com wrote: On 11-05-2012 23:48, Nick Sabalausky wrote: Is it just me, or does GitHub (in its entirety) seem to be down today? Works For Me (TM) - haven't had problems with GitHub at all today. Also, this is useful for cases

Re: Please help with GC exception!

2012-05-09 Thread Kevin Cox
On May 9, 2012 12:53 PM, Gor Gyolchanyan gor.f.gyolchan...@gmail.com wrote: Wouldn't it make more sense for GC to ignore second deallocation? If this was the case, data, which is know to become garbage would be deallocated right away. On the other hand, I might as well use std.c.stdlib.realloc

Re: How to make a directory?

2012-05-01 Thread Kevin Cox
On May 1, 2012 7:49 PM, Alex Rønne Petersen xtzgzo...@gmail.com wrote: Also, is there a way to require the root password of the user when going create the directory in a restricted folder (like /usr) AFTER the application has started? No idea, sorry. Thank you. -- - Alex You could

Re: Static method conflicts with non-static method?

2012-04-27 Thread Kevin Cox
On Apr 27, 2012 7:34 AM, so s...@so.so wrote: I agree it is ugly. If there is a way out (reason why i asked), we should just dump it. I don't like the idea either because it is confusing. The only reason I can imagine is if there was polymorphism on statics which I see as a fairly useless

Re: Aquivalent References as in C++?

2012-04-16 Thread Kevin Cox
On Apr 16, 2012 5:29 PM, Namespace rswhi...@googlemail.com wrote: That case I would like to prevent, but at the same time allow Ivalues. How does that work in D classes? As far as I know this operates with structs, but shouldn't it be possible with classes and objects too? I would recommend

Re: D 50% slower than C++. What I'm doing wrong?

2012-04-15 Thread Kevin Cox
On Apr 15, 2012 4:30 AM, Joseph Rushton Wakeling joseph.wakel...@webdrake.net wrote: ... the compiler accepts it. Whether that's because it's acceptably pure, or because the compiler just doesn't detect this case of impurity, is another matter. The int k is certainly mutable from outside the

Re: Creating a file in ~/.config (ubuntu)

2012-04-13 Thread Kevin Cox
Try using the $HOME environment variable.

Re: Measuring the page generation of the forum

2012-04-12 Thread Kevin Cox
On Apr 12, 2012 4:29 PM, SomeDude lovelyd...@mailmetrash.com wrote So noone thinks this could be a good idea ? I like it. I usually put a comment in the bottom of my pages but since the form is implemented in D it would nice to actually display it somewhere.

Re: Is anyone hacking on druntime in a widespread fashion at themoment?

2012-04-11 Thread Kevin Cox
On Apr 11, 2012 4:14 PM, Nick Sabalausky seewebsitetocontac...@semitwist.com wrote: Kevin Cox kevincox...@gmail.com wrote in message news:mailman.1599.1334099575.4860.digitalmar...@puremagic.com... I was wondering why they could not be implied from the code itself. That question comes up

Re: Is anyone hacking on druntime in a widespread fashion at the moment?

2012-04-10 Thread Kevin Cox
On Apr 10, 2012 7:08 PM, H. S. Teoh hst...@quickfur.ath.cx wrote: On Wed, Apr 11, 2012 at 12:10:19AM +0200, Alex Rønne Petersen wrote: I'm planning to go over druntime and add nothrow/pure everywhere I can, but I don't want to disturb anyone else who's currently working on patches that

Re: Foreach Closures?

2012-04-09 Thread Kevin Cox
On Apr 9, 2012 5:59 AM, Ary Manzana a...@esperanto.org.ar wrote: In this video you can see what foreach with opApply gets translated to (at about minute 1): http://www.youtube.com/watch?v=oAhrFQVnsrY Thanks, that's perfect. I'm definitely going to try out decent.

Re: Foreach Closures?

2012-04-09 Thread Kevin Cox
On Apr 9, 2012 9:19 AM, Manu turkey...@gmail.com wrote: OMG, DO WANT! :P Who wrote this? I wonder if they'd be interested in adapting it to VisualD + MonoDevelop? On 9 April 2012 12:56, Ary Manzana a...@esperanto.org.ar wrote: On 4/9/12 7:26 AM, Kevin Cox wrote: I was wondering about

Re: Foreach Closures?

2012-04-09 Thread Kevin Cox
On Apr 9, 2012 10:29 PM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 4/9/12 9:21 PM, Ary Manzana wrote: Yes, D definitely needs that. The Eclipse plugin could just use bindings to the D compiler API with JNI. Would the JSON compiler output help? Andrei It would cover

Re: How to set up QTD?.

2012-04-09 Thread Kevin Cox
On Apr 8, 2012 10:59 PM, vmars316 vmars...@live.com wrote: Greetings, I would also like to try out QTD. So far, I have set things up this: C:\D\dmd2\QT I made a .batch file for both drcc.exe and duic.exe . duic.exe gave no feedback. drcc.exe gave the following feedback:

Re: How to set up QTD?.

2012-04-09 Thread Kevin Cox
On Apr 9, 2012 12:09 PM, vmars316 vmars...@live.com wrote: On Monday, 9 April 2012 at 12:52:47 UTC, Kevin Cox wrote: I think rcc is the Qt resource compiler. I'm not at my computer at the moment to check, but if so it will translate xml resource files into D source. I think rcc is the Qt

Re: Issue with module destructor order

2012-04-08 Thread Kevin Cox
On Mar 26, 2012 5:11 AM, Benjamin Thaut c...@benjamin-thaut.de wrote: Is this intended behaviour or is this a bug? I assume this happens because of the mixin template and the public import. I'm using dmd 2.058. -- Kind Regards Benjamin Thaut I don't think the order of destructors is

Re: Documentation improvements

2012-04-08 Thread Kevin Cox
I would just like to say that I like having the grammar there. It helps me see the relations in the syntax. And I thought there were enough syntax examples.

Re: Documentation improvements

2012-04-08 Thread Kevin Cox
On Apr 8, 2012 4:54 PM, Jonas H. jo...@lophus.org wrote Sure but when people click on a link and weird grammar definitions are the only thing that's on the screen they're likely to think that's not what I looked for and try other pages. For sure. I think there should be both.

Re: x32-abi + D = fat pointers?

2012-04-08 Thread Kevin Cox
On Apr 8, 2012 6:24 PM, Tove t...@fransson.se wrote: I just stumbled upon this: https://sites.google.com/site/x32abi/home /rant I remember back in the glorious MC68000 days(24bit addressing)... leaving 8bits for creative optimizations... until 68020 took away all the fun that is. So... I

Foreach Closures?

2012-04-08 Thread Kevin Cox
I was wondering about the foreach statement and when you implement opApply() for a class it is implemented using closures. I was wondering if this is just how it is expressed or if it is actually syntatic sugar. The reason I aski is because if you have a return statement inside a foreach it

Re: Foreach Closures?

2012-04-08 Thread Kevin Cox
On Apr 8, 2012 7:49 PM, Timon Gehr timon.g...@gmx.ch wrote: On 04/09/2012 01:26 AM, Kevin Cox wrote: I was wondering about the foreach statement and when you implement opApply() for a class it is implemented using closures. I was wondering if this is just how it is expressed

Re: Latest versions of Entice Designer and DFL?

2012-04-08 Thread Kevin Cox
On Apr 8, 2012 4:49 PM, vmars316 vmars...@live.com wrote: Win7: Greetings, Ok, I got the command line for dmd2 running (Hello World). :) Now I would like to install a Visual GUI Builder. Not knowing any better, think I'll try Entice Designer and DFL. The most current versions I can find

Re: IDE Support for D

2012-04-06 Thread Kevin Cox
On Fri, Apr 6, 2012 at 7:15 PM, Brad Roberts bra...@puremagic.com wrote: It doesn't take a lot of help to greatly improve both the quality of a product and the liklihood that it'll survive much longer, but it does take some. My 2 cents, Brad I agree and understand with what you are saying

Re: Mascot for D

2012-04-05 Thread Kevin Cox
On Apr 5, 2012 4:24 PM, Zbigniew Radosz zbig...@o2.pl wrote How about a (digital) martian? :) Lol it took me a second to get it. Great one :)

Re: D projects list

2012-04-05 Thread Kevin Cox
On Apr 5, 2012 5:04 PM, Nick Sabalausky a@a.a wrote I would suggest though, that it be separated into two main parts: 1. Some sort of central database with a documented, publically-accessible machine interface, not a human interface. (And for the love of god, not XML.) 2. A human-usable

Re: Poll of the week - How long have you been in the D world?

2012-03-28 Thread Kevin Cox
Looks like a fairly even spread so far, (27 votes). The higher bracket is low, but it is also 6-10 years, D hasn't been around much longer than that . -- James Miller I like the spread. Most new users and a gradual decline until we get to 6+ where a group of people are sitting.

Re: Poll of the week - How long have you been in the D world?

2012-03-28 Thread Kevin Cox
On Wed, Mar 28, 2012 at 7:35 PM, Jesse Phillips jessekphillip...@gmail.comwrote: Seems the old timers are less representative now (142 votes). Nice poll, thanks. I was factoring out the different number of years in each category. I'm gonna try to create a bar graph with normalized years. 1

Re: How to use D for cross platform development?

2012-03-25 Thread Kevin Cox
On Mar 25, 2012 7:34 PM, Jonathan M Davis jmdavisp...@gmx.com wrote: On Monday, March 26, 2012 09:55:00 James Miller wrote: On 26 March 2012 09:44, Iain Buclaw ibuc...@ubuntu.com wrote: A spork of druntime, yes. A spork? I've never heard that before...

Re: GUI library

2012-03-25 Thread Kevin Cox
On Sun, Mar 25, 2012 at 11:13 AM, Jacob Carlborg d...@me.com wrote: On 2012-03-25 15:04, Tyro[17] wrote: Is there one available for use with D2 on MAC OS X? Thanks, Andrew * QtD - Bindings to Qt. Use the native drawing operations of the operating system (I think). Available on all

Re: Implicit integer casting

2012-03-18 Thread Kevin Cox
On Mar 18, 2012 3:09 PM, Manu turkey...@gmail.com wrote int x = 123456; x = 0xFF; // x is now in range 0..255; now fits in a ubyte ubyte y = x; // assign silently, cast can safely be implicit This is related to Go's infinitely sized constants. If an expression produces a value out of range

Re: Interesting Memory Optimization

2012-03-18 Thread Kevin Cox
On Mar 18, 2012 4:50 PM, Peter Alexander peter.alexander...@gmail.com wrote: Neither do I, but it's more work for the compiler, and even if the compiler does string pooling, it may not look for common suffixes. It would be more work but it would have memory and cache benefits. If you stored

Re: Interesting Memory Optimization

2012-03-16 Thread Kevin Cox
On Mar 16, 2012 7:45 AM, Alex Rønne Petersen xtzgzo...@gmail.com wrote I don't see any reason why c couldn't point to element number 3 of b, and have its length set to 3... -- - Alex And the previous examples were language agnostic. In D and other languages where the length of a string is

Re: Capturing caller's file/line number in variadic template functions

2012-03-16 Thread Kevin Cox
On Mar 16, 2012 2:29 PM, Adam D. Ruppe destructiona...@gmail.com wrote: Put the string file = blaha in the template argument list, before the variadic. voic checkConsistency(string file = __FILE__, int line = __LINE__, T...)(T t) { But then you have to write it each time.

Re: Changing the name of the language?

2012-03-15 Thread Kevin Cox
On Mar 15, 2012 9:25 PM, ixid nuacco...@gmail.com wrote: D is a very poor name for a language I like dpl and post tagged with it would turn up pretty well in google. But, as dlang is the website I think that is the best. Most blogs and fourms have a tag feature and you could always just say it

Re: How about colors and terminal graphics in std.format?

2012-03-12 Thread Kevin Cox
On Mar 12, 2012 7:55 PM, Damian Ziemba s...@dzfl.pl wrote And yea, I think like others that it should have its own module like std.terminal/std.console or maybe somekind of spot in std.stdio. Python has a great lib for this. I can't remember what package it is in but it has things like isTty()

Re: DDoc and logically structured HTML

2012-03-10 Thread Kevin Cox
On Mar 10, 2012 8:10 PM, Stewart Gordon smjg_1...@yahoo.com wrote I don't know how far we can go short of a doclet system like JavaDoc has. Nor even how exactly a doclet system would work under a language that compiles to native code Stewart. I hate to say it but I think the ddoc system

Re: Multiple return values...

2012-03-09 Thread Kevin Cox
On Mar 9, 2012 10:28 AM, H. S. Teoh hst...@quickfur.ath.cx wrote: On Fri, Mar 09, 2012 at 03:27:14PM +0100, Timon Gehr wrote: On 03/09/2012 01:23 AM, Manu wrote: [...] int x; ... (x, float y) = func(); // assign to predeclared variable(/s)? (x, , z) = func(); // ignore the second result

Re: Whats up with the domains?

2012-03-03 Thread Kevin Cox
On Mar 3, 2012 5:26 AM, David Nadlinger s...@klickverbot.at wrote: On Saturday, 3 March 2012 at 05:12:31 UTC, Kevin wrote: AFAIK they are mirrors of each other, would it be best to make one a redirect (smart, on a per-page level). This already happened after the discussion at

My Issues with Slices and AAs

2012-03-02 Thread Kevin Cox
After learning and using D for a little while I have discovered some (in my opinion) problems with the slices and associative array built-ins (for now I will just say slice). The main issue I have is that there is no way to pass around something that looks like and acts like a slice. This is

Re: My Issues with Slices and AAs

2012-03-02 Thread Kevin Cox
On Mar 2, 2012 10:30 AM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote Slices are primitive, concrete components that are close to the metal and are best for implementing abstractions, not defining them. You can always build and use abstract interfaces (that may or may not use slices

Re: My Issues with Slices and AAs

2012-03-02 Thread Kevin Cox
On Sat, Mar 3, 2012 at 12:09 AM, Xinok xi...@live.com wrote: http://ddili.org/ders/d.en/**ranges.htmlhttp://ddili.org/ders/d.en/ranges.html Thanks for the great link. And thanks everyone for your help. I can't believe I missed ranges as they are exactly what I wanted. Kevin

Re: Poll of the week: main OS and compiler

2012-03-01 Thread Kevin Cox
On Mar 1, 2012 11:11 AM, Manu turkey...@gmail.com wrote: Windows leads. Amazing! COFF + 64bit plz! ;) On 1 March 2012 16:40, Marco Leise marco.le...@gmx.de wrote: Since everyone loves polls, and the question comes up now and then: What is your main development platform for D ?

Re: Dumb question about git

2012-03-01 Thread Kevin Cox
When people say git encourages rewriting history. Don't listen. Once you have pushed your changes to the world they are immutable. This is because git uses cryptography internally and changing the history messes everything up. If you haven't pushed you can change all of your history and it

Re: Dumb question about git

2012-03-01 Thread Kevin Cox
On Mar 1, 2012 12:15 PM, H. S. Teoh hst...@quickfur.ath.cx wrote: On Thu, Mar 01, 2012 at 10:22:33AM -0500, Kevin Cox wrote: When people say git encourages rewriting history. Don't listen. Once you have pushed your changes to the world they are immutable. This is because git uses

Re: Trouble with -lib in linux undefined reference to `_Dmain'

2012-02-29 Thread Kevin Cox
I think you need the -lib in the linker command (too?). On Feb 29, 2012 12:25 PM, André an...@s-e-a-p.de wrote: Hi, I use Mono-D and have a hello world example which compiles fine. I set the compiler option -lib and receives an error undefined reference to `_Dmain'. Following commands are

Re: Conclusions of the exception discussion

2012-02-25 Thread Kevin Cox
I think there should also be multiple catches so that you can deal with different exceptions different ways without trying to upcast them over and over again. On Feb 25, 2012 1:30 AM, Daniel Murphy yebbl...@nospamgmail.com wrote: Jonathan M Davis jmdavisp...@gmx.com wrote in message

Re: UnitTest and visual D

2012-02-23 Thread Kevin Cox
I am having the same problem with visual d plugin for monodevelop. When I compile from the command line the tests run. A possibly related problem is that some files do not get recompiled when changed unless I do a rebuild. On Feb 23, 2012 8:38 PM, Jonathan M Davis jmdavisp...@gmx.com wrote: On

Re: UnitTest and visual D

2012-02-23 Thread Kevin Cox
On Feb 23, 2012 9:41 PM, Jonathan M Davis jmdavisp...@gmx.com wrote There may very well be further problems due to what the IDE is doing (such as not doing a full recompile when you enable -unittest), but the unit tests won't print anything out on success regardless unless you use print

Re: D runtime Garbage Collector details

2012-02-23 Thread Kevin Cox
On Feb 23, 2012 6:50 PM, Vadim vadim.goryu...@gmail.com wrote: I am looking for the details on D Garbage Collection implementation. I will much appreciate if someone suggests the answers or give some links to existing documentation clarifying the following points: 1. Is it Mark-n-Sweep or copy

Re: dmd -c behaviour doesn't take account of packages.

2012-02-22 Thread Kevin Cox
Although I agree that sources and objects should be sperated there are some benifits. All tools know where to look for the objects. And is not dificult to keep out of scm. A great example of this is Haskell. To compile an app you only need to specify the main file and it finds all the included

Re: Weird opEquals Problem

2012-02-22 Thread Kevin Cox
Oh, ok. First of all the docs appear somewhat misleading. I thought that function was an example on how to overload it. That could be clarified a little. Second of all, isn't that inefficient? And if you wanted to be able to compare to another type you don't control? I think it would make

Re: size_t + ptrdiff_t

2012-02-20 Thread Kevin Cox
What if te compiler was allowed to optimist to larger types? The only issue is if pulled rely on overflowing. That could be fixed by add in a type with a minimum size specified. This is kind of like C's fast int type. On Feb 20, 2012 8:20 AM, Regan Heath re...@netmail.co.nz wrote: On Mon, 20

Re: Why is there no or or and ?

2012-02-19 Thread Kevin Cox
Vb yes, python kinda. Vb is designed for people who don't want to program. The idea is to create a quick application that gets two job done. Python is slightly different. It has a ton of syntax and all the libraries that it needs to be used in moderately sized project. Python comes across as

Re: Let this() figure out T implicitly?

2012-02-17 Thread Kevin Cox
The error message is saying that you are trying to use Foo as a type but Foo is not a type, it is a template for a type. On Feb 17, 2012 7:20 AM, kraybourne st...@kraybourne.com wrote: Hi! This doesn't work: import std.stdio; class Foo(T) { T t;

Re: Let this() figure out T implicitly?

2012-02-17 Thread Kevin Cox
Yes. At least as the compiler would say. It's a little odd but I believe that is how the D Nam mangling works. I personally just think of Foo!(Class) as the type. On Feb 17, 2012 8:05 AM, kraybourne st...@kraybourne.com wrote: On 2/17/12 1:51 PM, Kevin Cox wrote: The error message is saying

Re: Default Implementation For an Interface

2012-02-17 Thread Kevin Cox
I wasn't looking to implement meathods in the interface, I was looking to have a default class that implements the interface that would be created if you called `new Interface();` I don't think this is possible. and now that I think about it I think that it is for a good reason. On Fri, Feb 17,