DefType -> Define

Everything else that doesn't fall into one of the other PB categories.
Fred
Administrator
Administrator
Posts: 18351
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post 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.
Amiga5k
Enthusiast
Enthusiast
Posts: 329
Joined: Fri Apr 25, 2003 8:57 pm

Post 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
*** Diapers and politicians need to be changed...for the same reason! ***
*** Make every vote equal: Abolish the Electoral College ***
*** www.au.org ***
Seldon
Enthusiast
Enthusiast
Posts: 405
Joined: Fri Aug 22, 2003 7:12 am
Location: Italia

Post 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...
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post 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. :)
@}--`--,-- A rose by any other name ..
Amiga5k
Enthusiast
Enthusiast
Posts: 329
Joined: Fri Apr 25, 2003 8:57 pm

Post 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
*** Diapers and politicians need to be changed...for the same reason! ***
*** Make every vote equal: Abolish the Electoral College ***
*** www.au.org ***
chris319
Enthusiast
Enthusiast
Posts: 782
Joined: Mon Oct 24, 2005 1:05 pm

Post 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.
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post 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.
:lol: :lol: :lol:
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Post 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 ..
Amiga5k
Enthusiast
Enthusiast
Posts: 329
Joined: Fri Apr 25, 2003 8:57 pm

Post 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
*** Diapers and politicians need to be changed...for the same reason! ***
*** Make every vote equal: Abolish the Electoral College ***
*** www.au.org ***
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

Macros don't allow to replace some commands names. That's the bad point.
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Psychophanta wrote:Macros don't allow to replace some commands names. That's the bad point.
Like what?
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Post by NoahPhense »

Code: Select all

Macro Apples
  messagerequester
EndMacro

Macro Oranges
  Apples
EndMacro

Oranges("That's Pretty", "Impressive!", #MB_ICONHAND)
Amiga5k
Enthusiast
Enthusiast
Posts: 329
Joined: Fri Apr 25, 2003 8:57 pm

Post 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
*** Diapers and politicians need to be changed...for the same reason! ***
*** Make every vote equal: Abolish the Electoral College ***
*** www.au.org ***
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Post 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
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post 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
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Post Reply