SA-MP Forums Archive
namespace - 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)
+--- Thread: namespace (/showthread.php?tid=472047)



namespace - Mean - 26.10.2013

is it possible to use namespaces in PAWN?

c++ example

Код:
namespace a {
    int a=1,b=2;
}

int main () {
    std::cout << a::a << a::b << std::endl;
    system("PAUSE");
    return EXIT_SUCCESS;
}



Re: namespace - park4bmx - 26.10.2013

simply no, pawn don't support it


Re: namespace - Mean - 26.10.2013

Quote:
Originally Posted by park4bmx
Посмотреть сообщение
simply no, pawn don't support it
funny thing is pawno highlights 'namespace' blue, oh well...


Re: namespace - park4bmx - 26.10.2013

http://www.compuphase.com/pawn/Pawn_Language_Guide.pdf

if its in there, then it has it