dmd 1.051 and 2.036 release

Leandro Lucarella llucax at gmail.com
Fri Nov 6 06:52:04 PST 2009


bearophile, el  6 de noviembre a las 05:48 me escribiste:
> I hope LDC will be able to use this version.
> 
> ---------------
> 
> This function:
> 
> auto bar() {
>     float[4] a = 0.0;
>     return a;
> }
> 
> May use 4 writes instead of a call to __memset32.
> 
> ---------------
> 
> The limit for array size is large enough:
> 
> import std.stdio: writeln;
> const int N = 86_312;
> auto foo3(int[N] a) {
>     a[2] = 5;
>     return a;
> }
> void main() {
>     int[N] a2;
>     writeln(foo3(a2)[0 .. 10]);
> }
> 
> ---------------
> 
> This page may explain how static arrays are passed, because they don't work as C ones now:
> http://www.digitalmars.com/d/2.0/abi.html
> 
> Regarding the documentation, the page about contract programming:
> http://www.digitalmars.com/d/2.0/dbc.html
> Points to this page for the Class Invariants:
> http://www.digitalmars.com/d/2.0/class.html#Invariant
> But there are Struct invariants too, so I think it may be better to talk about Class Invariants and Struct invariants in the dbc.html page.
> 
> ---------------
> 
> It may be positive to have a warning that warns where large fixed-sized arrays are passed by value, to avoid performance problems.

Fill bugzilla reports so it doesn't get lost!

-- 
Leandro Lucarella (AKA luca)                     http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------
MP: Cómo está, estimado Bellini?   B: Muy bien, Mario, astrologando.
MP: Qué tengo?                     B: Un balcón-terraza.
MP: No, en mi mano, Bellini...     B: Un secarropas!
MP: No, escuche bien, eh. Tiene    B: El circo de Moscú.
    números.
MP: No Bellini. Toma medidas.      B: Un ministro.
MP: No Bellini, eh! Algunas son    B: Una modelo, Mario!
    de plástico y otras de madera.
MP: No, Bellini, no y no!
	-- El Gran Bellini (Mario Podestá con una regla)


More information about the Digitalmars-d-announce mailing list