This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Pages: « 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 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 »
601
Announcements / Re: Happy New Year
« on: January 26, 2010, 12:08:20 pm »
The C++ implementation of templates generates a new copy of the code every time, which means that non-type parameters are especially non-useful. If runtime generics had non-type parameters, it might be more useful, but that's basically just moving the argument and it may or may not make anything clearer or easier.
Also:
Also:
Code: [Select]
class A {
int array[10];
};
602
Announcements / Re: Happy New Year
« on: January 25, 2010, 08:54:07 pm »
Basically, it links the different classes the template creates so they can behave as one class (which they pretty much are). Notice that the non-type parameters mean you have to generate a different version of the code for every size... isn't it more efficient space-wise (and time-wise, considering the virtual function) to just make the number a constructor parameter?
603
General ENIGMA / Re: Useful Tips
« on: January 23, 2010, 03:26:37 pm »
Get ready to do some slapping.
604
Off-Topic / Re: breaking news I AM A GIGANTIC FAGGOT PLEASE BAN ME blast breaking captcha code
« on: January 20, 2010, 08:38:28 pm »
Exactly. I'd just prefer he leave mine alone.
605
Off-Topic / Re: breaking news I AM A GIGANTIC FAGGOT PLEASE BAN ME blast breaking captcha code
« on: January 20, 2010, 06:37:22 pm »
How am I from G-Creator? I'm equally if not more from here, work-wise.
606
General ENIGMA / Re: Enigma on other platforms
« on: January 19, 2010, 10:39:59 pm »
RROD is a valid complaint (I haven't seen Wii/PS3 have that kind of trouble), but the games... not so much. It's built to be a gaming platform so the experience on the 360 v. the PC will usually be better. It's also better hardware-wise than the Wii and cheaper than the PS3, so the shared games aren't much of a problem either.
Basically, it doesn't suck.
Basically, it doesn't suck.
607
Announcements / Re: Happy New Year
« on: January 19, 2010, 10:36:42 pm »
So basically manual RTTI and/or virtual functions?
608
Announcements / Re: Happy New Year
« on: January 18, 2010, 03:27:45 pm »
...why do you need templates for that?
609
General ENIGMA / Re: Enigma on other platforms
« on: January 18, 2010, 03:25:00 pm »
*sniff* I smell uninformed suck-up
He's just pointing out that RetroX has no reason for his position, and that he has long history of this.
And because you're probably going to misunderstand this post too, I'm just pointing out that you are just posting inflammatory crap just to create an image for yourself.
He's just pointing out that RetroX has no reason for his position, and that he has long history of this.
And because you're probably going to misunderstand this post too, I'm just pointing out that you are just posting inflammatory crap just to create an image for yourself.
610
Announcements / Re: Happy New Year
« on: January 16, 2010, 11:28:33 am »
If you were score_under you could just set up the stack yourself and allocate dynamically-sized stuff on the stack.
612
Announcements / Re: Happy New Year
« on: January 14, 2010, 09:45:54 pm »
In C++ you can make statically-allocated containers of varying sizes:
Code: [Select]
template <typename Value, int size>
class Stack {
private:
Value value[size];
public:
...
};
613
Announcements / Re: Happy New Year
« on: January 12, 2010, 09:16:06 pm »
It just comes from the stupid idea to use <> for templates. Because the lexer finds the biggest token it can and >> is an operator, closing two template tags in a row causes problems. Other than that, this behavior for the lexer makes perfect sense- it parses "asdfasdf = 3" as asdfasdf, = and 3, rather than a, s, d, f, a, s, d, f, = and 3.
614
Announcements / Re: Missed one.
« on: January 12, 2010, 08:50:36 am »
I know someone with an i7, anyway.
615
Announcements / Re: Happy New Year
« on: January 09, 2010, 04:23:34 pm »
So... is this just a template/structure parser so you can get STL definitions? That's a little better, but then again, is map<var, var> so bad? You already have var doing arrays, no? If people want to take advantage of static typing they'll probably be doing something more like map<string, var> or map<int, string> rather than map<var, var>.