SA-MP Forums Archive
Suggestions of features for OXP - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Suggestions of features for OXP (/showthread.php?tid=269923)



Suggestions of features for OXP - RSX - 18.07.2011

So I'm currently developing my object extended pawn precompiler (right now I'm fighting with making it work so that pawno runs it, and it runs pawncc - with pawno given params) the thing is, it's syntax will be based on C++ style which is very common for me. My question is - what advanced features of C++ should I try to implant, and are there some that I should exclude?

Right now, I'm considering implanting : Right now that meets my requirements for OO extension, if there's a feature I should add, post it here !

If you need to know how the code will look more or less, here's a normal header file of C++ (It's from precompiler):
Код:
#ifndef PARSER_H
#define PARSER_H
typedef FILE* File;
namespace Parse {
    enum Mode {
        Full=1,
        Block=2,
        Optimized=3,
        Seek=4,
    };
};
class Parser {
    public:
    Parser(Parse::Mode mod=Parse::Block);
    ~Parser() {}
    private:
    int cd;
    };
#endif
Edit : What about namespaces?