Page 2 of 3
Posted: Sun Feb 05, 2006 4:50 pm
by Fred
Another point is with the 'Explicit' option, 'Define' will be much more used than before. Define then is more apprioriate name than DefType.
Posted: Tue Feb 07, 2006 7:06 am
by Amiga5k
Macros easily solve this dilemma, so I think we can move on from this, eh? (Now I can rename some REALLY long PB function names like I've always wanted:
ElapsedMilliseconds()
becomes
Millisecs() and
DisplayTranslucideSprite(#Sprite, x, y, Intensity)
becomes
ShowTSprite(#Sprite, x, y, Intensity)
)
..and so on
Macros are great!
Russell
Posted: Tue Feb 07, 2006 12:03 pm
by Seldon
This thread made me think if there is some "standard" for basic dialects ? I don't mean for functions of course, but for commands... like for/next, while/wend, etc...
Posted: Tue Feb 07, 2006 12:29 pm
by Dare2
Dartmouth, I think, is the name of the standard. But somebody will correct me if I am wrong.
However apart from some things like For/Next, very little in any Basic looks like tje pre-OOp, pre-Windows, pre-Noah original standard, methinks.

Posted: Wed Feb 08, 2006 5:58 am
by Amiga5k
That's true! If you look at a Commodore 64 Basic program trying to access a random access file or even just displaying an image, you'll see what a giant pain in the $%# it was. With all that potential (for the time period anyway), the built-in language sure left a lot to be desired when it came to accessing the VIC-II and SID. Granted, with a total of 64k to work with (and only "38911 BASIC BYTES FREE"), I suppose they had to cut something!
Anyway, BASIC has changed quite a bit since then...Thank goodness!
Russell
Posted: Wed Feb 08, 2006 12:16 pm
by chris319
Then Asc() should be Ascii()
Eof() should be EndOfFile()
Len() should be Lenght()
Val, Chr, Lof, Cos, Int, Abs .....
Don't give them ideas.
Posted: Wed Feb 08, 2006 1:12 pm
by Psychophanta
chris319 wrote:Then Asc() should be Ascii()
Eof() should be EndOfFile()
Len() should be Lenght()
Val, Chr, Lof, Cos, Int, Abs .....
Don't give them ideas.

Posted: Wed Feb 08, 2006 3:34 pm
by NoahPhense
chris319 wrote:Then Asc() should be Ascii()
Eof() should be EndOfFile()
Len() should be Lenght()
Val, Chr, Lof, Cos, Int, Abs .....
Don't give them ideas.
lol ..
Posted: Wed Feb 08, 2006 11:10 pm
by Amiga5k
The great thing about Macros is that you CAN have all of those things. You can change Len to Length and so on.
What I'm wondering, is: Are the various versions of PB going to have the same command set at some point? There are quite a few Windows-only commands right now (understandable) that would be quite appreciated on Linux and Mac I imagine.
This is one of the (very) few areas where I prefer BlitzMax <dodges flying tomato>: Everything coming from the official source is available on all platforms. Ease of creating new libraries (modules) is the other one, but I digress.
Anyway, I'm having fun with PB4b right now and looking forward to the full release!
Russell
Posted: Thu Feb 09, 2006 8:47 am
by Psychophanta
Macros don't allow to replace some commands names. That's the bad point.
Posted: Thu Feb 09, 2006 2:44 pm
by Trond
Psychophanta wrote:Macros don't allow to replace some commands names. That's the bad point.
Like what?
Posted: Thu Feb 09, 2006 3:21 pm
by NoahPhense
Code: Select all
Macro Apples
messagerequester
EndMacro
Macro Oranges
Apples
EndMacro
Oranges("That's Pretty", "Impressive!", #MB_ICONHAND)
Posted: Thu Feb 09, 2006 5:27 pm
by Amiga5k
No offense, NoahPhense, but that example doesn't seem like too much of a handicap to me. Can you show us a real world example of where it would be advantageous to do such a thing?
Besides, if it is something that people would use, Fred or whoever could probably fix it fairly easily.
Russell
Posted: Thu Feb 09, 2006 5:50 pm
by NoahPhense
Amiga5k wrote:No offense, NoahPhense, but that example doesn't seem like too much of a handicap to me. Can you show us a real world example of where it would be advantageous to do such a thing?
Besides, if it is something that people would use, Fred or whoever could probably fix it fairly easily.
Russell
No Offense taken..
I was just being silly. I really wasn't making an example. Just being
silly, I'm allowed to do that several times a day. Some days more than
others.. =)
Anyhow. Probably one of the reasons that Fred created Macros, is because
of the amount of people that were looking for command name changes.
I'm sure if any given command became a big agreement within the
forums it would be changed. In fact, it has been done several times
before. Where someone started a thread about changing something,
and everyone gave their opinions and views. That's what usually decides
changes.
But if someone wanted DefType back they can just use a macro to bring
back. Right?
- np
Posted: Thu Feb 09, 2006 9:30 pm
by Psychophanta
Trond wrote:Psychophanta wrote:Macros don't allow to replace some commands names. That's the bad point.
Like what?
Look at:
viewtopic.php?t=19173