This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gengtype: conditional GTY ? (to add before GCC 6 release)


Hi,
On Tue, 16 Feb 2016, Mikhail Maltsev wrote:

> > If anything, implement and use a range idiom like in D.
> > 
> Could you please elaborate on that?

Motivation:
  http://accu.org/content/conf2009/AndreiAlexandrescu_iterators-must-go.pdf
Detailed intro of the concept:
  http://www.informit.com/articles/article.aspx?p=1407357
A bit discussion and smaller overview:
  http://www.digitalmars.com/d/archives/digitalmars/D/Ranges_and_versus_iterators_107975.html

I believe ranges are implementable in C++, I'm not sure if efficiently 
already in c++98.  But whatever we implement as iteration scheme, should 
IMHO look more like ranges than explicit iterators (hell, I even much 
prefer the FOR_EACH macros over iterators).


Ciao,
Michael.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]