Re: Null references redux

2009-09-28 Thread Jari-Matti Mäkelä
Jeremie Pelletier wrote: Nick Sabalausky wrote: union A { int foo; float bar; } Yet it's the only way I know of to do bitwise logic on floating points in D to extract the exponent, sign and mantissa for example. You could add built-in methods for those operations to the float type:

Re: Null references redux

2009-09-28 Thread Jari-Matti Mäkelä
Jeremie Pelletier wrote: Jari-Matti Mäkelä wrote: Jeremie Pelletier wrote: Nick Sabalausky wrote: union A { int foo; float bar; } Yet it's the only way I know of to do bitwise logic on floating points in D to extract the exponent, sign and mantissa for example. You could add built

Re: Scala future, Sing#

2009-08-25 Thread Jari-Matti Mäkelä
Walter Bright wrote: Ary Borenszweig wrote: Walter Bright escribió: Jari-Matti Mäkelä wrote: bearophile wrote: - OOP: Scala supports dynamic OOP optimizations unlike D (unless a VM is used). Do you mean knowing a class or virtual method has no descendants? Sure, you need to know

Re: Scala future, Sing#

2009-08-25 Thread Jari-Matti Mäkelä
Walter Bright wrote: Jari-Matti Mäkelä wrote: - bloat: Scala is more lightweight. I've heard Walter say that he doesn't like e.g. library defined control structures - Actually, you can do them with lazy function arguments. There was an example somewhere of doing control structures

Re: Scala future, Sing#

2009-08-25 Thread Jari-Matti Mäkelä
Andrei Alexandrescu Wrote: Jari-Matti Mäkelä wrote: bearophile wrote: As Sing# (http://en.wikipedia.org/wiki/Sing_sharp ) and Chapel, Scala is one of the languages to be followed more, because they share some of future purposes of D2/D3. A small presentation about the close future

Re: Scala future, Sing#

2009-08-25 Thread Jari-Matti Mäkelä
bearophile Wrote: Walter Bright: Actually, you can do them with lazy function arguments. There was an example somewhere of doing control structures with it. There are some problems with this: - Are current (especially LDC) compilers able to inline those lazy delegates? Scala compiler

Re: How Nested Functions Work, part 1

2009-09-02 Thread Jari-Matti Mäkelä
Nick Sabalausky wrote: Jeremie Pelletier jerem...@gmail.com wrote in message news:h7h5i1$5m...@digitalmars.com... While D is not the first place I see closures and nested functions, it is the first language I come across that blends delegates, closures and nested functions in a simple,

Re: Elliotte Rusty Harold's take on Java

2009-09-17 Thread Jari-Matti Mäkelä
Nick Sabalausky wrote: Justin Johansson proc...@adam-dott-com.au wrote in message news:h8ruu1$1qp...@digitalmars.com... Being somewhat of a fan of Elliotte Rusty Harold, I drop in for a coffee read at his cafes from time to time. I think D people will enjoy this December 2008 article with