So why doesn't popFront return an element?

Andrej Mitrovic andrej.mitrovich at gmail.com
Wed Apr 13 16:55:44 PDT 2011


Oh, I thought the compiler could optimize calls to popFront if I'm not
assigning its value.

Doesn't a technique exist where if a function is called and I'm not
assigning its result anywhere it should simply exit the function
without returning anything? It seems like a valuable compiler
optimization, if that is even possible.


More information about the Digitalmars-d-learn mailing list