Search found 2872 matches
- Tue Nov 10, 2009 11:52 pm
- Forum: Off Topic
- Topic: I'm doing a PB too.
- Replies: 14
- Views: 2550
I'm doing a PB too.
It's suddenly dawned on me i no longer like using Basic. So i'm doing a PB and moving on. Like him, i'm sure i have my enemies here and i'm never one to admit i'm wrong, i'm very strong minded. I like to argue and love to the thrill of debate but i feel i'm probably always coming across as arrogant....
- Tue Nov 10, 2009 11:25 pm
- Forum: Feature Requests and Wishlists
- Topic: ternary if or iif
- Replies: 41
- Views: 16521
Re: ternary if or iif
While I understand your sentiment, OOP isn't really going to help! It's not supposed to be easy on your eyes, it's supposed to be fast! There is so much wrong with the above statement that i realise your brain is ' mentally mutilated beyond hope of regeneration ' so i'm going to bow out now and say...
- Tue Nov 10, 2009 9:27 pm
- Forum: Feature Requests and Wishlists
- Topic: ternary if or iif
- Replies: 41
- Views: 16521
Re: ternary if or iif
OOP wouldn't help at all, there's a reason for the repetition I'm sorry but there's no reason at all for repetition. And OOP would help a great deal here, it's called Polymorphism, one of the pillars of OOP. http://en.wikipedia.org/wiki/Polymorphism_in_object-oriented_programming Like i wrote earli...
- Tue Nov 10, 2009 8:16 pm
- Forum: Feature Requests and Wishlists
- Topic: ternary if or iif
- Replies: 41
- Views: 16521
Re: ternary if or iif
Who really cares? - most of PureBasic isn't anything like the original BASIC dialects. iff +1 True, but i'm just arguing if you're going to implement this, do it as an operator NOT a function and make it simple and easy to use. Operators can be optimised more to create inline code. MyVar.s = IsTrue...
- Tue Nov 10, 2009 8:10 pm
- Forum: Feature Requests and Wishlists
- Topic: ternary if or iif
- Replies: 41
- Views: 16521
Re: ternary if or iif
most BASICs support conditional expressions / Boolean Expressions. I know it since '83 from C64-Basic. Conditional expressions are not found in any BASIC language apart from VB which has the IIF() function which apparently isn't a true conditional expression but just a function. http://en.wikipedia...
- Tue Nov 10, 2009 6:52 pm
- Forum: Feature Requests and Wishlists
- Topic: ternary if or iif
- Replies: 41
- Views: 16521
Re: ternary if or iif
Exactly! But it's a lot more easy to read than that code up there. Does any BASIC support condition expressions?Kaeru Gaman wrote:it's not wrong, but it's not BASIC, either.Kale wrote:What's wrong with:Code: Select all
MyVar.s = IsTrue ? "true" : "false"
- Tue Nov 10, 2009 5:53 pm
- Forum: Feature Requests and Wishlists
- Topic: ternary if or iif
- Replies: 41
- Views: 16521
Re: ternary if or iif
I'm not sure if this is planned to be done though it could be very handy to have a ternary if or iif function while it can be done to some extent with macro's the cost of the procedure call is a bit of a performance hit and would be really nice to have in native code for convince. see http://www.pu...
- Thu Nov 05, 2009 10:50 pm
- Forum: Feature Requests and Wishlists
- Topic: new Eventsystem
- Replies: 19
- Views: 6406
Re: new Eventsystem
As much as I like OOP, I don't see how OOP is needed in order to make good use of event-handlers? If you take a look at his requested event syntax it's clear that it would become a gigantic mess of replication. OOP would be a prefered solution to avoid this to overload the event handlers to make th...
- Thu Nov 05, 2009 8:44 pm
- Forum: Feature Requests and Wishlists
- Topic: new Eventsystem
- Replies: 19
- Views: 6406
Re: new Eventsystem
If you are going to request this style of event handling then you really need an OOP based language. IMHO, PB's current event handling cannot get any simpler!hallodri wrote:Please add a new eventsystem, like vb.net, flex, wxwidget etc.
The current eventsystem is .. confusing?
- Wed Nov 04, 2009 5:50 pm
- Forum: Coding Questions
- Topic: Do we need to worry about disassembling?
- Replies: 10
- Views: 1146
Re: Do we need to worry about disassembling?
The more helpful and less obtuse reply is, no.
Unless you are doing something very advanced then the likelyhood of some proficient cracker disassembling your work is very low.
Unless you are doing something very advanced then the likelyhood of some proficient cracker disassembling your work is very low.
- Thu Oct 29, 2009 12:11 am
- Forum: Off Topic
- Topic: OOP vs procedural
- Replies: 45
- Views: 8282
Re: OOP vs procedural
A little bit of an over exaggeration i think, lol!Marlin wrote:also I am unwilling to sacrifice 90% of an apps performance for OOP.
- Wed Oct 28, 2009 8:36 pm
- Forum: Off Topic
- Topic: Looking for online PC game shop
- Replies: 12
- Views: 1822
- Wed Oct 28, 2009 7:05 pm
- Forum: Off Topic
- Topic: OOP vs procedural
- Replies: 45
- Views: 8282
Re: OOP vs procedural
IMHO, C# is the only thing microsoft has ever got right. could not resist: Reg: All right, but apart from the sanitation, medicine, education, wine, public order, irrigation, roads, the fresh water system and public health, what have the Romans ever done for us? Attendee: Brought peace? Reg: Oh, pe...
- Tue Oct 27, 2009 8:31 pm
- Forum: Off Topic
- Topic: OOP vs procedural
- Replies: 45
- Views: 8282
Re: OOP vs procedural
C# is IMHO one of the only really well-designed object oriented languages (of course, C++ and Java is important steps in the history of OOP. But no doubt C# is a fantastic language to work with IMHO, C# is the only thing microsoft has ever got right. And yes, you're right, it really is one of the b...
- Mon Oct 26, 2009 7:27 pm
- Forum: Coding Questions
- Topic: RegularExpression-find first word/spaces
- Replies: 5
- Views: 1278
Re: RegularExpression-find first word/spaces
To be more precise, + means 1 or more (unlimited), where'as if i had used * it would mean 0 or more.WilliamL wrote: + is repeat (appears to repeat until there aren't any more alfa chars)
Regular expression aren't hard per'say, they're just very easy to get lost in.