In article <gpfn6sgbrpa0u72nam04to424gu91rt5c0@...> , Herb Sutter ... Of COURSE! I should have seen this before! Now somebody should write a little...
Dave Abrahams
abrahams@...
Jan 2, 2000 12:10 am
1517
... Oops. I just thought about this a little more carefully, and I don't think it's possible to make it sufficiently general without a typeof() operator, which...
Dave Abrahams
abrahams@...
Jan 2, 2000 12:58 am
1518
... Funny you should say that. A couple of days ago it occurred to me that expression templates would be an important and useful library extension (whenever we...
Herb Sutter
hsutter@...
Jan 2, 2000 12:58 am
1519
... But should that prevent you from pursuing this at all? I think that something that supported: element() += 3 element() += 3 + x element() += element() but...
Darin Adler
darin@...
Jan 2, 2000 1:02 am
1520
... I don't think we can even support this one right. x might be a reference to element(). ... You know, Python has a limited form of lambda, but turns out to...
Dave Abrahams
abrahams@...
Jan 2, 2000 1:12 am
1521
Probably I'm too late with my thoughts about the whole Dave Abrahams' idea of boost Window toolkit and the topic seems to be closed by now, but I still want...
Aleksey Gurtovoy
alexy@...
Jan 2, 2000 4:32 am
1522
... Nope, just dormant. I'm going to write a motivation document and manifesto (declaration of principles and goals) one of these days... ... If you want to be...
Dave Abrahams
abrahams@...
Jan 2, 2000 5:14 am
1523
... ranges ... approach ... how ... You are right, Dave, and you've soothed me about this question ;) In fact I just didn't try to think about implementation...
Aleksey Gurtovoy
alexy@...
Jan 2, 2000 6:37 am
1524
... It's not complicated at all, and easy to remember, when you consider that point and size exactly parallel C++'s pointer and size_t (if we choose to use ...
Ed Brey
brey@...
Jan 2, 2000 1:40 pm
1525
As I got no feedback so far: Did anybody look at it and is anybody interested? However, I got some indirect feedback due to feeback to my book. It seems, that...
Nicolai Josuttis
nicolai.josuttis@...
Jan 2, 2000 2:27 pm
1526
... I didn't look, but not because it isn't important. I have just always assumed that something like this would arrive one day! ... can you still do that...
Dave Abrahams
abrahams@...
Jan 2, 2000 2:50 pm
1527
... Actually, I think you should have said "ptrdiff_t", not "size_t" ... These nice parallels notwithstanding, I worry about using the name 'size' this way...
Dave Abrahams
abrahams@...
Jan 2, 2000 2:57 pm
1528
... Okay, I'm putting my foot down: we are going to have to implement all of the 2-type versions of the operator templates with this workaround for VC++ ...
Dave Abrahams
abrahams@...
Jan 2, 2000 4:02 pm
1529
Another possible name choice would be static_array You need std:: qualifications on your use of size_t. This is one reason I tried to convince you to use...
Dave Abrahams
abrahams@...
Jan 2, 2000 5:20 pm
1530
... or static_vector ... OK ... But compilers accept this because they are still buggy, not because I didn't use explicit qualification (note that carray.hpp...
Nicolai Josuttis
nicolai.josuttis@...
Jan 2, 2000 6:52 pm
1531
From: Nicolai Josuttis <nicolai.josuttis@...> ... Or just array. What's static about it? That it doesn't change size? but "static" means...
Greg Colvin
gcolvin@...
Jan 2, 2000 7:14 pm
1532
... I'm all for this. ... 100% agreed. -- Gaby...
Gabriel Dos Reis
Gabriel.Dos-Reis@...
Jan 2, 2000 7:26 pm
1533
Nicolai Josuttis <nicolai.josuttis@...> writes: Hi Nico, ... Or wasn't anybody being on holidays? :-) ... As Greg proposed, why not...
... Damned, I knew there was something, others do between Christmas an New Year :-) ... Hmmm, I am not sure because array might be widely use as identifier ...
Nicolai Josuttis
nicolai.josuttis@...
Jan 2, 2000 9:04 pm
1537
... Yeah, definitely: KISS....
Dave Abrahams
abrahams@...
Jan 2, 2000 9:39 pm
1538
... Soory folks, but due to my not-knowledge of English I am confused about Gregs and Daves last comment. Does "I'm all for this" mean that it doesn't matter...
Nicolai Josuttis
nicolai.josuttis@...
Jan 2, 2000 9:44 pm
1539
... The latter. ... K.I.S.S. = "Keep It Simple, Stupid!"...
Dave Abrahams
abrahams@...
Jan 2, 2000 9:51 pm
1540
... Yes, but I need the '2' versions of these facilities, too, because sadly I have to use VC++. So we need to just bite the bullet and supply all of them. Now...
Dave Abrahams
abrahams@...
Jan 2, 2000 10:04 pm
1541
Please excuse me for butting in. ... You can if you add a semicolon ;) The built-in types produce lvalues. This is undefined behavior of the form that I have...
John Potter
jpotter@...
Jan 2, 2000 11:15 pm
1542
I've got to my implementation of scaling operators in 'delta' and 'point', and I just realized how stupid I was when I wrote these: template<class T> class...
Aleksey Gurtovoy
alexy@...
Jan 2, 2000 11:26 pm
1543
... I also think that there are situations where chaining may be very handy. Turning back to my version of 'rectangle' class, with a function calls chaining...
Aleksey Gurtovoy
alexy@...
Jan 2, 2000 11:46 pm
1544
... Cute. I could be convinced... -Dave...
Dave Abrahams
abrahams@...
Jan 3, 2000 12:13 am
1545
The code was completely redesigned, and the 'size' class now renamed to 'delta'. They still have no documentation, is it a proper time to start to work on it?...