Jsmith:
1. I guess the C++0x auto could be useful and maybe decltype, though couldn't auto be used instead?
2. Variadic templates? How would this work?
3. typeof() and typeid should cover this
4. How should this and class extension be done?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
//like this?
class foo{
type bar;}
enum color{
black=0,
red,
blue};
//Keyword extend extends class/enumeration
extend foo{
type value;};
extend color{
green,
magenta};
//or this?
class foo{
type bar};
enum color{
black=0,
red,
blue};
//Second "declaration" extends class/enumeration
class foo{
type value};
enum color{
green,
magenta};
|
Personally, I like the extend keyword because it tells anyone reading the code that there is more to that class/enum
5. Like this?
1 2 3 4 5 6 7 8
|
enum color{
red,
green,
blue};
int main(){
color c=blue;
color c2=enum("blue");}
|
6. Maybe an enum can be declared like this:
enum name:typename{/* */}
where the enum is a bunch of arbitrary values of type typename that are in the name namespace
7. Shouldn't the revised va_list cover this? Or should the [] operator be declared like c++'s () operator?
8. That's a really interesting idea... So you would declare an interface and any object that inherits it would inherit the members of every class in the interface?
Rocketboy9000:
1. The revised va_list should cover this
2. I already mentioned doing this
3. I'm not really familiar with regexes - what are they?
4. I'm not sure what this is, either
5. What about a way to call a function if an exception is thrown? That way you can see what happened even if there's no console
6. See jsmith #1
7. Sounds like a good ide
8. I'm not sure what you mean
New idea: non const class member default values