On Sat, 1 Nov 2014 12:34:50 +0000
Iain Buclaw via Digitalmars-d <digitalmars-d@puremagic.com> wrote:

> On 1 November 2014 09:03, ketmar via Digitalmars-d
> <digitalmars-d@puremagic.com> wrote:
> > Hello.
> >
> > let's run this code:
> >
> >       info.list[idx] = saveIt(info, count-1); //!!!
> 
> You could use:
> 
> emplace(&info.list[idx], saveIt(info, count-1));
i know some workarounds, i just want to know how can i explain this
nonsense to newcomers. "please, remember that you can't safely assign
values to array elements"? this is one of the best ways to turn 'em
off. "wut? are you kidding? that's what they call 'safe language'?
thank you, but no. they can't do even array assign, what a..." ;-)

Attachment: signature.asc
Description: PGP signature

Reply via email to