Re: C#7 features

2016-05-09 Thread Simen Kjaeraas via Digitalmars-d-announce
On Monday, 9 May 2016 at 00:44:09 UTC, Peter Häggman wrote: Their tuples seem to be a complete DIY: https://msdn.microsoft.com/en-us/library/system.tuple(v=vs.110).aspx I wouldn't be surpised to see in the implementation an array of variant or something like that, explaining why it's limited

Re: Units of Measurement Library: units-d

2016-04-04 Thread Simen Kjaeraas via Digitalmars-d-announce
On Saturday, 2 April 2016 at 01:19:45 UTC, Meta wrote: What is needed is Lisp's gensym construct. That's basically what I said, no? :p One problem of lisp's gensym (if we were to use it in D) is that it's simply a monotonically increasing number with a global prefix. It's perfect for the lan

Re: Units of Measurement Library: units-d

2016-04-01 Thread Simen Kjaeraas via Digitalmars-d-announce
On Friday, 1 April 2016 at 21:46:35 UTC, ag0aep6g wrote: On 01.04.2016 22:59, Simen Kjaeraas wrote: The usual way to fix it would be to include __FILE__ and __LINE__ in the template arguments: Right, no mixin this way. I wouldn't call this "truly nice", though. It

Re: Units of Measurement Library: units-d

2016-04-01 Thread Simen Kjaeraas via Digitalmars-d-announce
On Friday, 1 April 2016 at 19:03:03 UTC, ag0aep6g wrote: I dislike that the type depends only on the given name. This effectively means that the names are in a global namespace. [snip] I can't think of a truly nice way to accomplish this, though. As far as I see, it needs a mixin of some kind.

Re: [Blog post] Why and when you should use SoA

2016-03-26 Thread Simen Kjaeraas via Digitalmars-d-announce
On Friday, 25 March 2016 at 01:07:16 UTC, maik klein wrote: Link to the blog post: https://maikklein.github.io/post/soa-d/ Link to the reddit discussion: https://www.reddit.com/r/programming/comments/4buivf/why_and_when_you_should_use_soa/ Neat. I've actually thought about writing exactly this

Re: Logo for D

2016-01-20 Thread Simen Kjaeraas via Digitalmars-d-announce
On Wednesday, 20 January 2016 at 14:09:53 UTC, karabuta wrote: On Monday, 18 January 2016 at 22:48:52 UTC, Brad Anderson wrote: http://i.imgur.com/RSBLFDJ.png Doesn't it look so much better: http://i.imgur.com/QlrbCou.png Waw!! I never new the thing at the top was a moon when I was doing m

Re: Facebook is using D in production starting today

2013-10-11 Thread Simen Kjaeraas
On 2013-10-11, 11:14, Manu wrote: [image: Big Thumbs Up] I'm Simen Kjærås, and I approve of this message. So... when'll all Facebook PHP code be replaced with D? :p -- Simen

Re: D/Objective-C, extern (Objective-C)

2013-06-23 Thread Simen Kjaeraas
On 2013-06-23, 23:02, bearophile wrote: Jacob Carlborg: http://michelf.ca/projects/d-objc/syntax/ Instead of: extern (Objective-C) Is it better to use a naming more D-idiomatic? extern (Objective_C) There's already some precedence in extern (C++). -- Simen

Re: dmd 2.063 released with 260 bugfixes and enhancements

2013-05-30 Thread Simen Kjaeraas
On 2013-05-30, 17:16, Andrei Alexandrescu wrote: For the full story, mosey to the redesigned changelog: http://dlang.org/changelog.html Kudos to Andrej for this. *This* is how a great changelog looks. -- Simen

Re: DConf 2013 Day 1 Talk 2: Copy and Move Semantics in D by Ali Cehreli

2013-05-16 Thread Simen Kjaeraas
On Thu, 16 May 2013 01:40:51 +0200, Andrej Mitrovic wrote: On 5/16/13, Nick Sabalausky wrote: I wasn't around back then. :) You must be very young, quite a prodigy, really ;) I'm still learning the alphabet, I'm only at D now! Now try writing that using only the letters you supposedl

Re: DConf 2013 Day 1 Talk 3: Distributed Caching Compiler for D by Robert Schadek

2013-05-13 Thread Simen Kjaeraas
On 2013-05-13, 21:09, Nick Sabalausky wrote: On Mon, 13 May 2013 10:01:03 -0700 Bill Baxter wrote: Is there a way to find all the reddit links to these (not a frequent reddit user, but I'm curious to look over the discussions each vid gets when I have the chance). Added Reddit links here:

Re: DConf 2013 Day 1 Talk 2: Copy and Move Semantics in D by Ali Cehreli

2013-05-12 Thread Simen Kjaeraas
On 2013-05-12, 02:22, Andrei Alexandrescu wrote: On 5/11/13 7:39 PM, Nick Sabalausky wrote: Furthermore, my whole point was nothing more than to merely suggest that *maybe* the delay should simply be somewhat less, *not* a demand or expectation, and *not* even a suggestion that they should all

Re: Visual D 0.3.36 released - support for Alex Bothe's semantic analysis, LDC and profiling

2013-05-11 Thread Simen Kjaeraas
On 2013-05-11, 12:39, Rainer Schuetze wrote: Hi, a new version of Visual D is long overdue, so finally it is released. In addition to the usual fixes of bugs and regressions, the major highlights of this version are - DParser by Alexander Bothe (https://github.com/aBothe/D_Parser, also

Re: DConf 2013 Opening Keynote by Walter Bright: video and slides available

2013-05-10 Thread Simen Kjaeraas
On Fri, 10 May 2013 15:00:44 +0200, Jeff Nowakowski wrote: On 05/08/2013 05:41 PM, Andrei Alexandrescu wrote: VOTE UP!!! http://www.reddit.com/r/programming/comments/1dyinq/dconf_2013_opening_keynote_by_walter_bright/ I have to laugh at the reddit id: "1dying" :) 1dyinq, btw -- Simen

Re: Crystal

2013-03-20 Thread Simen Kjaeraas
On 2013-02-17, 10:52, Russel Winder wrote: Why is this thread on the announce mailing list instead of the discussion list? Because it's more an announcement, and less a discussion about D? -- Simen

Re: DPaste ain't going anywhere

2013-01-15 Thread Simen Kjaeraas
On 2013-01-15, 20:29, Jesse Phillips wrote: On Monday, 14 January 2013 at 09:34:50 UTC, nazriel wrote: Hello! I would love to say that it was just 1 April joke that Dpaste is going down but I can't. Things got complicated. I couldn't afford extending domain because I began to run low on mo

Re: DPaste ain't going anywhere

2013-01-14 Thread Simen Kjaeraas
On 2013-34-14 10:01, nazriel wrote: Hello! I would love to say that it was just 1 April joke that Dpaste is going down but I can't. Things got complicated. I couldn't afford extending domain because I began to run low on money. Thanks to Vladimir Panteleev aka CyberShadow, who donated mo

Re: Announcement: "preapproved" tag added to bugzilla

2013-01-08 Thread Simen Kjaeraas
On 2013-30-09 04:01, Andrej Mitrovic wrote: Some reasons to reject: outright insane request. RESOLVED: OUTRIGHT INSANE REQUEST Yup, I likes that. -- Simen

Re: User Defined Attributes

2012-11-07 Thread Simen Kjaeraas
On 2012-39-06 20:11, Jacob Carlborg wrote: On 2012-11-06 19:24, David Nadlinger wrote: You are right, UDAs must definitely leverage D's module system for encapsulation/disambiguation. Use of string literals (which are intrinsically »global«) as annotations needs to be explicitly discouraged

Re: Alex Rønne Petersen joins phobos and druntime

2012-10-15 Thread Simen Kjaeraas
On 2012-10-15, 20:33, Andrei Alexandrescu wrote: Hello all, Please join me in congratulating Alex Rønne Petersen for joining the phobos and druntime committers on github. Alex has been a very active contributor to D, particularly druntime. We hope his prolific participation to continue a

Re: Article: Dispelling Common D Myths

2012-10-10 Thread Simen Kjaeraas
On 2012-10-10, 14:28, Adam D. Ruppe wrote: Another thing I'm (slowly) working toward for the dead D projects thing is opening my dpldocs.info to third party submissions. It actually already kinda works: http://dpldocs.info/search/index but isn't fully done yet. I read that as diplodocus. Is

Re: Article: Dispelling Common D Myths

2012-10-10 Thread Simen Kjaeraas
On 2012-10-10 08:10, Nick Sabalausky wrote: Some stuff I thought needed to be said and shared: http://semitwist.com/articles/article/view/dispelling-common-d-myths Now on Reddit: http://www.reddit.com/r/programming/comments/118y4m/dispelling_common_d_myths/ -- Simen

Re: Slides from LASER 2012

2012-09-21 Thread Simen Kjaeraas
On Fri, 21 Sep 2012 05:58:21 +0200, Andrei Alexandrescu wrote: On 9/20/12 10:06 AM, Simen Kjaeraas wrote: Cool. And now the inevitable: Will there be video? No video was taken. Andrei *sadface* -- Simen

Re: Slides from LASER 2012

2012-09-20 Thread Simen Kjaeraas
On Thu, 20 Sep 2012 14:57:45 +0200, Andrei Alexandrescu wrote: I've had the honor of rubbing shoulders for a week at http://laser.inf.ethz.ch/2012/ with Roberto Ierusalimschy, Ivar Jacobson, Erik Meijer, Bertrand Meyer, Martin Odersky, Simon Peyton-Jones, and Guido van Rossum. It was awe

Re: Dmitry Olshansky Passes GSoC Final Evaluation

2012-08-24 Thread Simen Kjaeraas
On Fri, 24 Aug 2012 17:50:37 +0200, Andrei Alexandrescu wrote: Hi everybody, I'm happy to announce that Dmitry has passed GSoC's final evaluation. Going forward he and I will focus on integrating his work within Phobos. This should have technically occurred during the allocated time its

Re: Walter charms the audience at Sioux

2012-08-24 Thread Simen Kjaeraas
On Fri, 24 Aug 2012 13:52:04 +0200, F i L wrote: Peter Alexander wrote: There's no such thing as a perfect language. Note the asterisks. What I'm used to, *this* means bold. *Perfect* thus means absolutely perfect. Perfect*, on the other hand, would mean either 'more information below' or

Re: Antti-Ville Tuuainen Passes GSoC Final Evaluation

2012-08-24 Thread Simen Kjaeraas
On Fri, 24 Aug 2012 08:27:09 +0200, Jacob Carlborg wrote: On 2012-08-23 16:38, Alex Rønne Petersen wrote: Yes, but parallelization of the mark phase is fairly trivial, and something we should probably look into. The GC will probably always be STW unless we get compiler support for inserting

Re: Antti-Ville Tuuainen Passes GSoC Final Evaluation

2012-08-21 Thread Simen Kjaeraas
On Tue, 21 Aug 2012 15:15:48 +0200, dsimcha wrote: Congratulations, Antti-Ville! This project creates a better implementation of precise GC heap scanning than anything that's been created so far for D. The goal is to eventually integrate it into standard D distributions. Any volunteers

Re: NaNs Just Don't Get No Respect

2012-08-19 Thread Simen Kjaeraas
On Sun, 19 Aug 2012 14:08:17 +0200, bearophile wrote: Walter Bright: Oh come on. That's called a "user defined type." This D code compiles and it throws an "Enforcement failed" Exception at runtime: import std.typecons: Nullable; void main() { Nullable!int x; int y = x; }

Re: NaNs Just Don't Get No Respect

2012-08-19 Thread Simen Kjaeraas
On Sun, 19 Aug 2012 05:52:01 +0200, Walter Bright wrote: On 8/18/2012 8:31 PM, Adam D. Ruppe wrote: enum BOOL { TRUE, FALSE, FILE_NOT_FOUND } I used to work with digital electronics. There, "boolean" logic actually had 4 states: True False Don't Know Don

Re: NaNs Just Don't Get No Respect

2012-08-19 Thread Simen Kjaeraas
On Sun, 19 Aug 2012 22:18:37 +0200, Walter Bright wrote: On 8/19/2012 5:08 AM, bearophile wrote: With a different type system the compiler makes sure at compile-time that x is not empty (this means the compiler makes sure in no code paths x is used before testing it contains something),

Re: First working Win64 program!

2012-08-14 Thread Simen Kjaeraas
On Tue, 14 Aug 2012 11:44:43 +0200, Bernard Helyer wrote: On Tuesday, 14 August 2012 at 08:28:45 UTC, Walter Bright wrote: On 8/13/2012 4:05 PM, Nick Sabalausky wrote: Well, not *exactly* the same boat. I always, perhaps mistakenly, assumed the OMF issue would eventually get addressed. To

Re: First working Win64 program!

2012-08-12 Thread Simen Kjaeraas
On Sat, 11 Aug 2012 10:16:37 +0200, Walter Bright wrote: No, it ain't much, some of it is jury rigged, and there's a heluva lot more work to do. But we've got liftoff! - import core.stdc.stdio; extern (C) int main() { puts("hello world\n"); re

Re: D Conference 2012 - Sep 26-29 at the Banker's Suite and Ballroom in Astoria, Oregon

2012-05-25 Thread Simen Kjaeraas
On Fri, 25 May 2012 14:25:47 +0200, simendsjo wrote: On Fri, 25 May 2012 14:13:24 +0200, Simen Kjaeraas wrote: A. No. Q. Does top-posting make sense? In emails to non-newsgroup people: yes! I've sent several mails where the receiver doesn't think I've answered anyth

Re: D Conference 2012 - Sep 26-29 at the Banker's Suite and Ballroom in Astoria, Oregon

2012-05-25 Thread Simen Kjaeraas
A. No. Q. Does top-posting make sense? On Thu, 24 May 2012 18:13:59 +0200, Paul D. Anderson wrote: Here it is! http://astoriaseminar.com/index.html On Thursday, 17 May 2012 at 21:38:32 UTC, Paul D. Anderson wrote: On Wednesday, 22 February 2012 at 22:07:26 UTC, Walter Bright wrote: Pri

Re: dmd 1.070 and 2.055 release

2011-09-12 Thread Simen Kjaeraas
On Mon, 12 Sep 2011 16:43:36 +0200, Steven Schveighoffer wrote: While I agree a nested "@disable this" struct inside a struct should disable default construction of the outer struct, a class *requires* initialization, and a default constructor is called explicitly (and can be defined!)

Re: dmd 1.070 and 2.055 release

2011-09-12 Thread Simen Kjaeraas
On Sun, 11 Sep 2011 19:57:12 +0200, Walter Bright wrote: On 9/11/2011 9:08 AM, Max Samukha wrote: This test case struct S { @disable this(); this(int x) { } } class C { S s; this() { s = S(42); } } void main() { auto c = new C; } yields Error: default construction is disabled for type C

Re: OT: Congratulations Walter!

2011-02-24 Thread Simen kjaeraas
On Thu, 24 Feb 2011 19:45:57 +0100, Walter Bright wrote: JMRyan wrote: Congratulations are due to Walter. His alma mater (Cal Tech) won its first basketball conference game in 26 years. Their 46-35 victory over Occidental broke a 310 SCIAC losing streak. They shot a torid 25% for the

Re: Phobos unit testing uncovers a CPU bug

2010-11-26 Thread Simen kjaeraas
Don wrote: The difference was discovered through the unit tests for the mathematical Special Functions which will be included in the next compiler release. Discovery of the discrepancy happened only because of several features of D: - built-in unit tests (encourages tests to be run on ma

Re: Utah Valley University teaches D (using TDPL)

2010-11-15 Thread Simen kjaeraas
Andrei Alexandrescu wrote: [Good Stuff™] Awesome! -- Simen

Re: TDPL in Russian

2010-11-10 Thread Simen kjaeraas
Stanislav Blinov wrote: P.S. Guys, let's be polite, please! Yes, the news are great, but let's not cause eyestrain to non-Russian speaking people. Но Россия это весело! (But russian is fun!) -- Simen

Re: TDPL in Russian

2010-11-09 Thread Simen kjaeraas
Andrei Alexandrescu wrote: Just got word from my editor that TDPL has been approved for translation in Russian. Отлично! Now if only I knew russian, and didn't already have the english version... -- Simen

Re: dmd 1.065 and 2.050 release

2010-10-30 Thread Simen kjaeraas
Peter Alexander wrote: On 29/10/10 7:54 PM, Lutger wrote: Walter Bright wrote: This is primarily a bug fix release. And relaxed purity rules. They rule! What relaxations were made, exactly? Pure functions now only require that no globals are used in their body, and that any called func

Re: QtD is resumed

2010-10-12 Thread Simen kjaeraas
Max Samukha wrote: As there is interest in the project, we have decided to proceed. Stay tuned. Yay! Good luck, and hope Walter and co will give your bug reports some higher priority. I think that is the right thing to do now. -- Simen

Re: D web site facelift

2010-07-02 Thread Simen kjaeraas
Walter Bright wrote: Comments welcome. I really like the feel, but I must join the others saying the menu text has too low contrast. I'm mostly using Opera 10.6/Win7 on 1920x1200 on a 15.4" laptop monitor, and the font size is perfect for me. I noticed it's smaller in Chrome/ Firefox, but no

Re: dcollections 1.0 and 2.0a beta released

2010-05-24 Thread Simen kjaeraas
Steven Schveighoffer wrote: On the flip side, if containers did not implement interfaces, having to do this: class WrappedSet!(alias Impl, V) : Set!V { private Impl!V impl; int functionToSatisfySet() { return impl.functionToSatisfySet(); } ... } seems to me like a lot more crufty

Re: dcollections 1.0 and 2.0a beta released

2010-05-24 Thread Simen kjaeraas
Steven Schveighoffer wrote: And if 3rd party X _needs_ to use interfaces, and 3rd party Y _needs_ to use interfaces, and your code depends on X and Y, and interfaces aren't defined by dcollections, where are you then? You're at the point where the language allows you to create a class foll

Re: dcollections 1.0 and 2.0a beta released

2010-05-22 Thread Simen kjaeraas
BCS wrote: Cool. Now how do I write code so that it will always iterate the collection with the bigger O() lookup time (O(n) before O(log2(n)) before O(log16(n)) before O(1))? :D Add a function. auto foo( R1, R2 )( R1 r1, R2 r2 ) if ( R1.complexity( 10_000 ) > R2.complexity( 10_000 ) )

Re: dmd 1.061 and 2.046 release

2010-05-17 Thread Simen kjaeraas
Robert Jacques wrote: On Mon, 17 May 2010 21:03:02 -0400, Steven Schveighoffer wrote: Walter Bright Wrote: Steven Schveighoffer wrote: > The end result is, sometimes I can't find a link I clicked on before, > because I'm no longer on the exact right page -- the nav bar is totally > de

Re: dmd 1.059 and 2.044 release

2010-05-02 Thread Simen kjaeraas
Walter Bright wrote: Highlights are the improved gdb support, better error messages, better json support, unittest changes, and a number of nuisance compiler bugs fixed. http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.059.zip http://www.digitalmars.com/d/

Re: Visual D released

2010-04-23 Thread Simen kjaeraas
Rainer Schuetze wrote: Hello, I'd like to announce the initial release of Visual D, a Visual Studio package providing both project management and language services for integration of the D programming language into Visual Studio. [snip] Enjoy, Rainer Thank you. I love this. However, I

Re: dmd 1.057 and 2.041 release

2010-03-08 Thread Simen kjaeraas
Walter Bright wrote: Lots of meat and potatoes here, and a cookie! (spelling checker for error messages) http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.057.zip http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.041.zip Thanks

Re: dmd 1.056 and 2.040 release

2010-01-30 Thread Simen kjaeraas
Walter Bright wrote: http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.056.zip http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.040.zip Thanks to the many people who contributed to this update! D2 changelog points @disable to

Re: SciD: the humble beginning

2009-12-15 Thread Simen kjaeraas
Bill Baxter wrote: Biggest problem with OpenGL is that the quality is crap for 2D stuff, and quality really matters when you're trying to do something like draw 2000 little markers on a plot and each is only 5 pixels wide. Best you can do right now with GL without a lot of contortions is somet

Re: dmd 1.053 and 2.037 release

2009-12-05 Thread Simen kjaeraas
On Sun, 06 Dec 2009 03:35:42 +0100, Walter Bright wrote: Simen kjaeraas wrote: I get a compile error: std\conv.d(2506): Error: undefined identifier module traits.staticIndexOf Line 2506 in std.conv should be changed from if (std.traits.staticIndexOf!(Unqual!S, uint, ulong) >

Re: dmd 1.053 and 2.037 release

2009-12-05 Thread Simen kjaeraas
On Sat, 05 Dec 2009 05:05:13 +0100, Walter Bright wrote: Probably the biggest thing is opDispatch! http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.053.zip http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.037.zip Many thanks

Re: Juni

2009-06-03 Thread Simen Kjaeraas
On Wed, 03 Jun 2009 02:35:03 +0200, Tim Matthews wrote: Knud Soerensen wrote: Hej John Undskyld, forsinkelsen med denne mail. Normalt er jeg optaget mandag aften. Derudover har jeg noget den 6 og 14 juni. Håber, vi kan find en dag at mødes. VH. Knud Ps.) Jeg kan ikke huske om den sidst

Re: Partial specialisation: howto?

2009-05-16 Thread Simen Kjaeraas
div0 wrote: Hi Everybody, Greetings. While I am not able to help with your problem, I would like to point you to digitalmars.D.learn, which is for questions about how the language works. digitalmars.D.announce is for announcements. -- Simen

Re: Split digitalmars.D newsgroup into .D and .D2 newsgroups?

2009-05-11 Thread Simen Kjaeraas
Walter Bright wrote: Is this a good idea? Yes. Although, D.current and D.next or something along those lines, seems to me better than D1 and D2 (there is reason to believe there will be a D3 in the future). -- Simen

Re: Slide design

2009-05-05 Thread Simen Kjaeraas
On Mon, 04 May 2009 20:47:10 +0200, Sean Kelly wrote: == Quote from Andrei Alexandrescu (seewebsiteforem...@erdani.org)'s article I don't agree. I think there is much more at work here. Slides are limited in size and text content simply because there is so much information a person can absor

Re: RangeExtra 10^-20

2009-04-25 Thread Simen Kjaeraas
dsimcha wrote: RangeExtra version 10^-20 is officially out. It consists of a small and hopefully growing number of ranges that didn't make it into the new Phobos that I've gotten working reasonably well and I feel eventually belong in Phobos. Docs / What's there: http://cis.jhu.edu/~dsimc

Re: dmd 2.029 release

2009-04-24 Thread Simen Kjaeraas
grauzone wrote: void streamOut(T, R)(T object, R range) { foreach(x; a) range.put(x); range.put(b); range.put(c); } So, um... what is a b c and T object? In my opinion, this is a confusing example. I believe it was meant to be: void streamOut(T, R)(T object, R range) { foreach(

Re: dmd 2.029 release

2009-04-23 Thread Simen Kjaeraas
Don wrote: I'd like to see version(debug) {} put around Object.toString(). It's a deathtrap feature that's got no business being used other than for debugging. That actually sounds like a good idea. Like you say, is has no use outside of debugging, but while debugging, it's quite useful. -

Re: dmd 2.029 release

2009-04-20 Thread Simen Kjaeraas
On Mon, 20 Apr 2009 09:09:09 +0200, Walter Bright wrote: This is a major revision to Phobos, including Andrei's revolutionary new range support. http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.029.zip Butbutbut... I've just barely managed to install 2.02

Re: Open source dmd on Reddit!

2009-03-13 Thread Simen Kjaeraas
On Fri, 13 Mar 2009 06:57:12 +0100, Derek Parnell wrote: On Thu, 12 Mar 2009 12:59:08 -0700, Walter Bright wrote: If you work with kids teaching them to read phonetically (rather than look-say), you'll discover that by and large, the phonetic rules work very well. They'll pronounce about 80%

Re: DMD 1.038 and 2.022 releases

2008-12-18 Thread Simen Kjaeraas
On Thu, 18 Dec 2008 13:27:16 +0100, Christopher Wright wrote: Simen Kjaeraas wrote: On Thu, 18 Dec 2008 07:01:49 +0100, Steven Schveighoffer wrote: Walter wants pure functions that have no side effects *AND* cannot be affected by other functions' side effects. Your example fail

Re: DMD 1.038 and 2.022 releases

2008-12-18 Thread Simen Kjaeraas
On Thu, 18 Dec 2008 07:01:49 +0100, Steven Schveighoffer wrote: Walter wants pure functions that have no side effects *AND* cannot be affected by other functions' side effects. Your example fails the second requirement. I should have put that in there as well. My point was that a delegate

Re: DMD 1.038 and 2.022 releases

2008-12-17 Thread Simen Kjaeraas
On Wed, 17 Dec 2008 00:39:00 +0100, Robert Jacques wrote: On Tue, 16 Dec 2008 12:28:43 -0800, Simen Kjaeraas wrote: So this does not seem pure to you? int myPureFunction(int x) { return x; } Short answer: That's a function, not a delegate and without a 'pure&#

Re: DMD 1.038 and 2.022 releases

2008-12-16 Thread Simen Kjaeraas
On Tue, 16 Dec 2008 18:58:47 +0100, Robert Jacques wrote: On Mon, 15 Dec 2008 17:48:21 -0500, mastrost wrote: In this example, myPureFunction looks like a pure function, does it? No it doesn't So this does not seem pure to you? int myPureFunction(int x) { return x; } -- Simen

Re: Adding Unicode operators to D

2008-10-26 Thread Simen Kjaeraas
On Mon, 27 Oct 2008 00:41:26 +0100, Bill Baxter <[EMAIL PROTECTED]> wrote: Same thing goes for downs' in-fix operators. I think his syntax is /infix/ which means that his ops always have the same precedence as division. I'm guessing this Python Cookbook recipe is very similar to Downs' technique

Re: Adding Unicode operators to D

2008-10-26 Thread Simen Kjaeraas
On Sun, 26 Oct 2008 22:28:16 +0100, Bill Baxter <[EMAIL PROTECTED]> wrote: On Sun, Oct 26, 2008 at 11:02 PM, Simen Kjaeraas <[EMAIL PROTECTED]> wrote: On Sat, 25 Oct 2008 12:14:47 +0200, Spacen Jasset <[EMAIL PROTECTED]> wrote: Why unicode anyway? In the same way that

Re: Adding Unicode operators to D

2008-10-26 Thread Simen Kjaeraas
On Sat, 25 Oct 2008 12:14:47 +0200, Spacen Jasset <[EMAIL PROTECTED]> wrote: Why unicode anyway? In the same way that editor support is required to actually type them in, why not let the editor render them. So instead of symbol 'x' in the source code, say: m3 = m1 cross_product m2 as an

Re: Adding Unicode operators to D

2008-10-24 Thread Simen Kjaeraas
On Fri, 24 Oct 2008 18:52:03 +0200, Bruno Medeiros <[EMAIL PROTECTED]> wrote: Simen Kjaeraas wrote: As an example, while I'd enjoy seeing code like this, I'm not sure I'd enjoy writing it (Note that I am prone to exaggerations): int a = ∅; //empty set, sam

Re: Adding Unicode operators to D

2008-10-24 Thread Simen Kjaeraas
On Fri, 24 Oct 2008 18:28:51 +0200, Bruno Medeiros <[EMAIL PROTECTED]> wrote: Andrei Alexandrescu wrote: Please vote up before the haters take it down, and discuss: http://www.reddit.com/r/programming/comments/78rjk/allowing_unicode_operators_in_d_similarly_to/ Andrei I'm unsure abo

Re: Adding Unicode operators to D

2008-10-23 Thread Simen Kjaeraas
On Thu, 23 Oct 2008 23:47:59 +0200, Bill Baxter <[EMAIL PROTECTED]> wrote: On Fri, Oct 24, 2008 at 5:48 AM, Simen Kjaeraas <[EMAIL PROTECTED]> wrote: writefln(√(c.foo)); // I thought this should work in D today, using "alias sqrt √;", but it seems the

Re: Adding Unicode operators to D

2008-10-23 Thread Simen Kjaeraas
On Thu, 23 Oct 2008 00:27:58 +0200, Andrei Alexandrescu <[EMAIL PROTECTED]> wrote: Please vote up before the haters take it down, and discuss: http://www.reddit.com/r/programming/comments/78rjk/allowing_unicode_operators_in_d_similarly_to/ Andrei I really like the idea of having more unic

Re: DMD 1.036 and 2.020 releases

2008-10-22 Thread Simen Kjaeraas
On Wed, 22 Oct 2008 20:42:05 +0200, Sean Kelly <[EMAIL PROTECTED]> wrote: Don wrote: 'std', 'stdc' and 'sys' sound OK to me. Although is there any reason why stdc couldn't be part of 'sys'? IMHO: 'common' sounds far too generic. 'core' is borderline. My current thought is to have: core/