----- Original Message ---- > From: SHOO <[email protected]> > > (2010/11/03 2:47), Michel Fortin wrote: > > In first and second examples, you're taking the address of a local > > variable. >This is forbidden in @safe code, so I consider this already solved. > > I don't think so. > @safe code cannot forbid to bring out the address: > http://ideone.com/rMl5i I believe the plan is for @safe to prevent you from taking the address of any stack data. But I don't know if that is formalized. Surely, that code should be disabled by @safe, because the compiler can deduce the variable escapes its scope. -Steve _______________________________________________ phobos mailing list [email protected] http://lists.puremagic.com/mailman/listinfo/phobos
- Re: [phobos] Fwd: Re: Ruling... Brad Roberts
- Re: [phobos] Fwd: Re: Ruling... Steve Schveighoffer
- Re: [phobos] Fwd: Re: Ruling... Brad Roberts
- Re: [phobos] Fwd: Re: Ruling out... Sean Kelly
- Re: [phobos] Fwd: Re: Ruling out arbitrary cost copy c... Sean Kelly
- Re: [phobos] Fwd: Re: Ruling out arbitrary cost copy c... SHOO
- Re: [phobos] Fwd: Re: Ruling out arbitrary cost c... Michel Fortin
- Re: [phobos] Fwd: Re: Ruling out arbitrary co... SHOO
- Re: [phobos] Fwd: Re: Ruling out arbitrar... Jonathan M Davis
- Re: [phobos] Fwd: Re: Ruling out arbitrar... Steve Schveighoffer
- Re: [phobos] Fwd: Re: Ruling out arbitrary cost c... Steve Schveighoffer
- Re: [phobos] Fwd: Re: Ruling out arbitrary cost copy c... Max Samukha
- Re: [phobos] Fwd: Re: Ruling out arbitrary cost c... David Simcha
- Re: [phobos] Fwd: Re: Ruling out arbitrary cost c... Andrei Alexandrescu
- Re: [phobos] Fwd: Re: Ruling out arbitrary co... Max Samukha
- Re: [phobos] Fwd: Re: Ruling out arbitrary cost c... Michel Fortin
- Re: [phobos] Fwd: Re: Ruling out arbitrary co... Max Samukha
