Semi-OOP cross platform
Semi-OOP cross platform
Add the possibility to add custom properties to the gadgets or windows? (If custom methods as well would be great). It should be cross platform.
Re: Semi-OOP cross platform
Did you look at:
GetGadgetData(#Gadget)
SetGadgetData(#Gadget, Value)
GetGadgetItemData(#Gadget, Item)
SetGadgetItemData(#Gadget, Item, Value)
If you need to store more than one value you could use SetGadgetData to store the address of a structure or array (depending on your data)
bye
GetGadgetData(#Gadget)
SetGadgetData(#Gadget, Value)
GetGadgetItemData(#Gadget, Item)
SetGadgetItemData(#Gadget, Item, Value)
If you need to store more than one value you could use SetGadgetData to store the address of a structure or array (depending on your data)
bye
I am to provide the public with beneficial shocks.
Alfred Hitshock
Re: Semi-OOP cross platform
Thanks fsw, this will help a lot.
However if PB consider thinking about adding some (not necessarily all) of the functionalities of the OOP (specially subclassing to add custom properties and methods) will make PB the programming language no 1 in the world.
However if PB consider thinking about adding some (not necessarily all) of the functionalities of the OOP (specially subclassing to add custom properties and methods) will make PB the programming language no 1 in the world.
Re: Semi-OOP cross platform
OMG, here we are again.hmasr wrote: will make PB the programming language no 1 in the world.
"Have you tried turning it off and on again ?"
A little PureBasic review
A little PureBasic review
-
- Addict
- Posts: 1675
- Joined: Sun Dec 12, 2010 12:36 am
- Location: Somewhere in the midwest
- Contact:
Re: Semi-OOP cross platform
Can't you already subclass gadgets anyway via API?
At least that was my impression..
At least that was my impression..
Re: Semi-OOP cross platform
Zach,
Yes I can via API but for windows only. What I need is platform independent method
Yes I can via API but for windows only. What I need is platform independent method
Re: Semi-OOP cross platform
What's up. Could not get youluis wrote:OMG, here we are again.hmasr wrote: will make PB the programming language no 1 in the world.
Re: Semi-OOP cross platform
What he means is that every newbie always asks for OOP. It is a very predictable cycle.hmasr wrote:What's up. Could not get youluis wrote:OMG, here we are again.hmasr wrote: will make PB the programming language no 1 in the world.
And the developer has rejected it, and claims PB will NEVER get it.
-
- Addict
- Posts: 1482
- Joined: Tue Feb 22, 2011 1:16 pm
Re: Semi-OOP cross platform
Yep, it's annoying. PureBasic is not an OOP language. Search these forums for very lengthy discussions on why it won't happen.Tenaja wrote:What he means is that every newbie always asks for OOP. It is a very predictable cycle.
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
PureBasic: Born in 1998 and still going strong to this very day!
Re: Semi-OOP cross platform
@Tenaja,
I understand that changing to fully OOP is very difficult and may affect the pros of PB like speed, file size, and memory usage. This is why I am asking for semi-OOP with some specific functionality not all of them.
I understand that changing to fully OOP is very difficult and may affect the pros of PB like speed, file size, and memory usage. This is why I am asking for semi-OOP with some specific functionality not all of them.
Re: Semi-OOP cross platform
Well, if you are going there, you have to to tell the poor guy who to look for...MachineCode wrote:Yep, it's annoying. PureBasic is not an OOP language. Search these forums for very lengthy discussions on why it won't happen.Tenaja wrote:What he means is that every newbie always asks for OOP. It is a very predictable cycle.
Fred is the developer.
freak is on the development team.
Re: Semi-OOP cross platform
Please do not beat this dead horse.hmasr wrote:@Tenaja,
I understand that changing to fully OOP is very difficult and may affect the pros of PB like speed, file size, and memory usage. This is why I am asking for semi-OOP with some specific functionality not all of them.
And yes, C++ was first implemented as a preprocessor. There are some of those available for PB. I am not an OOP lover, so I do not use them. I am not against it, just do not need it.
-
- Addict
- Posts: 1482
- Joined: Tue Feb 22, 2011 1:16 pm
Re: Semi-OOP cross platform
Let's look at some quotes from http://www.purebasic.fr/english/viewtop ... =3&t=45569 back in 2011:
And just to finish it off, a quote direct from the manufacturers:
And now, let's look at these quotes from today:hmasr wrote:This is why I am asking for semi-OOP with some specific functionality not all of them.
will make PB the programming language no 1 in the world.
Wow, almost exactly word-for-word! Sigh. Please look elsewhere for an OOP language, lest this thread mimic the other one in its entirety.DaylightDreamer wrote:i think it is really time to add unless partial OOP support in it.
I think this will put PB to next level. And he might become serious competition to languages such as C# or AS3.
And just to finish it off, a quote direct from the manufacturers:
And then he locked the thread. Hope it happens here.Freak wrote:Yawn! This whole "If only PB had X, it would be a 'professional' language" argument is so old. And its plain false too.
This is getting nowhere.
Last edited by MachineCode on Tue Jun 05, 2012 2:31 pm, edited 1 time in total.
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
PureBasic: Born in 1998 and still going strong to this very day!
Re: Semi-OOP cross platform
don't expect any oop stuff when the devs can't even produce a decent changelog.
Re: Semi-OOP cross platform
xorc1zt wrote:don't expect any oop stuff when the devs can't even produce a decent changelog.

I am to provide the public with beneficial shocks.
Alfred Hitshock