Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, TedMar), 1,031 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
OOP in lite-c #266537
05/18/09 16:13
05/18/09 16:13
Joined: Mar 2009
Posts: 276
Cebu City, Philippines
boyax Offline OP
Member
boyax  Offline OP
Member

Joined: Mar 2009
Posts: 276
Cebu City, Philippines
Hi,

Just a tip in my mind... Hope lite-c would follow/support object-oriented programming paradigm. smile

I think that would be a much work for the engine.. just a suggestion though..

Cheers

Re: OOP in lite-c [Re: boyax] #266588
05/18/09 19:22
05/18/09 19:22
Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
Nowherebrain Offline
Serious User
Nowherebrain  Offline
Serious User

Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
maybe you should look at C++, OOP is not a "C" thing...it is pretty much what separates C and C++.


Everybody Poops.
here are some tutorials I made.
http://www.acknexturk.com/blender/
Re: OOP in lite-c [Re: Nowherebrain] #266618
05/18/09 21:37
05/18/09 21:37
Joined: Aug 2008
Posts: 133
Sweden, Stockholm
E
Enduriel Offline
Member
Enduriel  Offline
Member
E

Joined: Aug 2008
Posts: 133
Sweden, Stockholm
hmm :P what about lite-C# ^^

Re: OOP in lite-c [Re: Enduriel] #266982
05/21/09 09:41
05/21/09 09:41
Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
Nowherebrain Offline
Serious User
Nowherebrain  Offline
Serious User

Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
I'm not sure, I'm not the most knowledgeable guy in these matters. Any one else know?


Everybody Poops.
here are some tutorials I made.
http://www.acknexturk.com/blender/
Re: OOP in lite-c [Re: Nowherebrain] #266988
05/21/09 10:18
05/21/09 10:18
Joined: Aug 2006
Posts: 652
Netherlands
bstudio Offline
User
bstudio  Offline
User

Joined: Aug 2006
Posts: 652
Netherlands
Originally Posted By: Nowherebrain
maybe you should look at C++, OOP is not a "C" thing...it is pretty much what separates C and C++.

Well, you have Objective-C which is an object oriented paradigm of c, but it isn't usable with C. You can do a sort of fake OO with lite-C though.


BASIC programmers never die, they GOSUB and don't RETURN.
Re: OOP in lite-c [Re: bstudio] #267003
05/21/09 11:25
05/21/09 11:25
Joined: Jan 2004
Posts: 2,062
Hamburg, Germany
slacer Offline
Expert
slacer  Offline
Expert

Joined: Jan 2004
Posts: 2,062
Hamburg, Germany
Well, there is no inheritance, no interfaces, no abstract classes. It does not make sense to fake this, because it would be just more complicated to maintain the source codes.

- Information hiding is not possible
- you can not even create modules and link them.
- One has to "include" .c files instead of linking compiled object files.
- no modules, means that there is no file based scope for global variables.

I am missing some basic features here.

DLL creation is listed in the forecast, but it is not in development. At least there is no progress shown for this feature.

-- slacer

Re: OOP in lite-c [Re: slacer] #267181
05/22/09 11:26
05/22/09 11:26
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline
Expert
Joozey  Offline
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
It's also promised that lite-c get classes, but that has been for a long time already.


Click and join the 3dgs irc community!
Room: #3dgs
Re: OOP in lite-c [Re: Joozey] #267198
05/22/09 13:44
05/22/09 13:44
Joined: Sep 2003
Posts: 9,859
F
FBL Offline
Senior Expert
FBL  Offline
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
I doubt that those classes will offer advanced OOP features.

Still having structs which can contain member functions would be nice.
There is btw a way to fake this.
You need void* pointers in your struct to store functions and since mystruct.functioncall() will not work, you'll need some external function pointers which you set to the void* pointer of your struct directly before usage...


Moderated by  aztec, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1