C++ -
Falcon Interceptor - 07.07.2010
So, I wanted to know if any of you guys have experiences using C++. I know it is similar to PAWN.
I would like to know if you guys uses C++. Thanks
Regards,
Falcon Interceptor
Re: C++ -
RyDeR` - 07.07.2010
I started two weeks ago, and actually not difficult but I think it will take a year or something to understand (almost) everything.
My last work was an object streamer. ^^
Re: C++ -
Falcon Interceptor - 07.07.2010
Well, sometimes the opening of { and end of the } makes me confused.
Or sometimes forgetting the ";" at the end of a line
Re: C++ -
RoBo - 07.07.2010
Quote:
Originally Posted by Falcon Interceptor
I know it is similar to PAWN.
|
Well that's news to me, last time I checked C++ was an OOP language whereas PAWN isn't. Huge difference!
Re: C++ -
Tannz0rz - 08.07.2010
Quote:
Originally Posted by RoBo
Well that's news to me, last time I checked C++ was an OOP language whereas PAWN isn't. Huge difference!
|
He meant similar regarding the syntax, not paradigm.
Re: C++ -
Westie - 08.07.2010
If you come to look at it, PAWN is actually an OOP language.
Why?
You have various AMX files, all of which are linked to one virtual machine.
Each AMX file can call functions in other instances, thus each AMX file can be seen as an object.
Edit: I'll make a code example now!
PAWN Gamemode1:
pawn Код:
#include <a_samp>
#pragma semicolon 0
main()
{
}
forward onSomeSortOfCallback()
public onSomeSortOfCallback()
{
print("This callback was called.")
}
PAWN Filterscript1:
pawn Код:
#include <a_samp>
#pragma semicolon 0
public OnPlayerConnect(playerid)
{
CallRemoteFunction("onSomeSortOfCallback")
}
Guess what happens when a player connects? Oh wait, it's called! Thus it's an OOP language.
Re: C++ -
Falcon Interceptor - 08.07.2010
Alright, I'm not a very good scripter / programmer. I haven't learn PAWN pretty well
Aswell as C++. I'm just going to start using C++ maybe soon.
So I wanted to ask what is "OOP Language"?
Thanks
Re: C++ -
Westie - 09.07.2010
An OOP language is a language that is object orientated (you can use objects for almost anything)
As you already probably know, C++ is indeed object orientated.
Re: C++ -
Falcon Interceptor - 09.07.2010
Alright. I understand now.
Thanks Westie and guys.
Regards
Re: C++ -
PeteEnis - 12.07.2010
Quote:
Originally Posted by Westie
If you come to look at it, PAWN is actually an OOP language.
Why?
You have various AMX files, all of which are linked to one virtual machine.
Each AMX file can call functions in other instances, thus each AMX file can be seen as an object.
Guess what happens when a player connects? Oh wait, it's called! Thus it's an OOP language.
|
You know that a key aspect of oop languages is that you can have multiple instances of one object?
Calling pawn an oop language is simply ridiculous.