Re: [Felix-language] C++11 stuff

2012-11-27 Thread john skaller
On 28/11/2012, at 3:07 PM, James Dennett wrote: > > On the bright side, decltype/declval make it a one-liner. > > #include // for declval > > template > using type_of_sum = decltype(::std::declval() + ::std::declval()); > > type_of_sum s = 1LL + 7UL; Ah, thanks for that! Hadn't thought of

Re: [Felix-language] C++11 stuff

2012-11-27 Thread James Dennett
On Wed, Nov 21, 2012 at 8:32 PM, john skaller wrote: > I'm not completely sure what C++11 stuff would be most useful > to Felix. A lot of the stuff that avoids book-keeping for human programmers > is no problem in generated code. > > Some of the new library containers may be useful. > > In the co

[Felix-language] C++11 stuff

2012-11-21 Thread john skaller
I'm not completely sure what C++11 stuff would be most useful to Felix. A lot of the stuff that avoids book-keeping for human programmers is no problem in generated code. Some of the new library containers may be useful. In the core language, initialiser syntax like X = { .. } would be