Post by Deleted on Feb 21, 2013 11:10:05 GMT -5
Ha!
Visual C++ has an automatic garbage collecor
If you don't use that bullshit microsoft made you don't have it.
I should know becuase I have created my share of memory leaks and had to find and fix them myself.
No it doesn't, multithreading is optional and so is the exception handlers. (Unless you are using that bullshit visual c++ that microsoft made)
'hardware' multithreading is optional, but multithreading in general is part of the C++ standard and can be done on a software level.
And yeah. I really believe that you are fluent in 8 programming languages.
I sense sarcasm, so I'll list:
- C
- C++
- C#
- Java
- Python
- Z80 Assembly
- TI-Basic
- 8086 Assembly
The other 4 languages I've worked with but am not fluent in:
- Ruby
- VB
- Perl
- MIPS Assembly
And if you count engine-based scripting languages, I'm also fluent in GML and Unity JScript (which is really closer to ECMA script than Javascript)
I know I am a fluent in four and I know that C++ can compile natively. One can write low level operative system components with it for fucks sake.
I can link d0x for it.
www.osdever.net/tutorials/pdf/cpp_kernel.pdf
So yeah that's just bullshit.
I can link d0x for it.
www.osdever.net/tutorials/pdf/cpp_kernel.pdf
So yeah that's just bullshit.
Yeah, took a look at that. They don't tell you what the bootloader does, and I know why. Because it does exactly what I said, it sets up paging and irqs so C++ can be used.
I honestly regret even getting into this. I always get worked up over the C vs C++ thing, and C++ junkies are too block-headed to be argued with. Fact is EVERYTHING that can be done in C++ can be done in C. However C can be used everywhere and C++ cannot., so in my opinion, C is better
cexcept.h - try/catch for C through the use of setjmp
structs mimicking classes
#define func(fn) (*fn)
bool realFunc(int, int);
typedef struct {
bool func(myFunc)(int, int);
} Class;
Class _class, *class = &_class;
class->myFunc = (bool func()(int, int)) realFunc;
bool realFunc(int arg1, int arg2) {
}
// now you can call realFunc with class->myFunc(arg1, arg2) just like a c++ class
obviously, new and delete are rather pointless, and the use of constructors and destructors is also explained above
no real need to explain namespaces, they're pretty much just the same as classes, exempt from that fact that their members can be declared globally, which shown above is already the case.
unions instead of templates
union {
float f;
int i;
char c;
} t_type;
t_type myvalue;
printf("myvalue as float\n", myvalue.f);
printf("myvalue as int\n", myvalue.i);
printf("myvalue as char\n", myvalue.c);
and these are just simple recreations / alternatives off the top of my head, no effort needed