[Implemented] Enumeration

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Little John
Addict
Addict
Posts: 4777
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: Enumeration

Post by Little John »

Gentlemen ... :)
This request has been made repeatedly, and in course of time also several workarounds have been posted ....
I can't avoid the impression that this topic might be exhausted. :)
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Enumeration

Post by PB »

> If you like workarounds why did you complain about the same one in this post?

I wasn't complaining about it; I was just warning him what it could lead to,
which is ignoring the request. I'm in favor of workarounds for small things,
but not to replace big things (which answers Tenaja's question).
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
luis
Addict
Addict
Posts: 3893
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: Enumeration

Post by luis »

Tenaja wrote:
PB wrote:To show that such simple requests can be done by the "programmer".
That can be a slippery slope... afterall, if you take that literally, why is Fred making any updates???
Because we cannot fix bugs in the compiler is reason enough :wink:

But talking about requests, because there are two types of them if we limit ourself to the language:

the kind you can implement by yourself in your code: but you are asking for a native solution because you think if would be better for some reason (crossplatform, easier to understand, useful to a lot of people and so could be a nice addition to the language or native library, or simply because you are plain lazy or is too difficult for you, etc.).

the kind you cannot implement yourself *at all* or only partially but not with the same level of integration, efficiency, versatility you would have by modifying the compiler: for example polymorphism -> http://www.purebasic.fr/english/viewtop ... =3&t=55335 or a new keyword like Constant -> http://www.purebasic.fr/english/viewtop ... =3&t=34045

So for the second type, updates to the language/compiler are required.
"Have you tried turning it off and on again ?"
A little PureBasic review
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: Enumeration

Post by Tenaja »

luis wrote:
Tenaja wrote:That can be a slippery slope... afterall, if you take that literally, why is Fred making any updates???
But talking about requests, because there are two types of them if we limit ourself to the language:

the kind you can implement by yourself in your code: but you are asking for a native solution because you think if would be better for some reason (crossplatform, easier to understand, useful to a lot of people and so could be a nice addition to the language or native library, or simply because you are plain lazy or is too difficult for you, etc.).

the kind you cannot implement yourself *at all* or only partially but not with the same level of integration, efficiency, versatility you would have by modifying the compiler: for example polymorphism -> http://www.purebasic.fr/english/viewtop ... =3&t=55335 or a new keyword like Constant -> http://www.purebasic.fr/english/viewtop ... =3&t=34045

So for the second type, updates to the language/compiler are required.
This may be true, but I always consider the amount of work required of Fred before I make a request. (I rarely request one that takes as much as an hour of his time, and my requests are few and far between.) In this particular instance, I believe Fred could implement a Step Multiplication in less than fifteen minutes (I am being generous--it is more likely five minutes; "all" he has to do is multiply instead of add). Yes, I know this from firsthand experience, as I have implemented this very request.

Anything that he can implement that can help a large number of people, and make code significantly easier to read, and only takes a few minutes...that is a worthy request, in my estimation. Something that requires a whole additional library file to work around, and helps a small percentage of people...not as much.

With as many times as this has been requested, it will clearly be helpful to many...On the other hand, we have seen over and over again that Fred does not implement features based on the number of requests.
User avatar
skywalk
Addict
Addict
Posts: 4211
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Enumeration

Post by skywalk »

Yeah, expanding on what luis said, it would be helpful if Feature Request topics were expanded:
IDE, Compiler, Debugger, VisualDesigner, Syntax/Language, etc.
In most cases, readers of a feature request attempt to determine if a "workaround exists".
Stifling that effort is not helpful to anyone and certainly don't influence Fred's decisions. :lol:
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Post Reply