REM Command

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Tranquil
Addict
Addict
Posts: 952
Joined: Mon Apr 28, 2003 2:22 pm
Location: Europe

REM Command

Post by Tranquil »

To be compatible with older basic languages like the good old C64 I would like to have a REM command.

Code: Select all

10 For a = 0 to 255   : Rem Mainloop starts here
20 PokeB(53280,a)     : Rem Change Border Color
21 PokeB(53281,255-a) : Rem Background color
30 Next a	          : Rem Mainloop ends here
8)
Tranquil
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: REM Command

Post by PB »

Are you serious?
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
chris319
Enthusiast
Enthusiast
Posts: 782
Joined: Mon Oct 24, 2005 1:05 pm

Post by chris319 »

I second the request and I am serious. It's no sillier than using a semicolon for comments instead of an apostrophe. It will improve compatability and take nothing away from PB.
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

write a macro
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

blueznl wrote:write a macro
Had the same thought, but can't think of a way that would do it. (Macros support - that is, ignore - embedded ";" comments so the obvious is out.) Any ideas? Not that I particularly want it, I'm just curious now how to do it via a macro.
@}--`--,-- A rose by any other name ..
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

dunno, don't use macro's, i use my own preprocessor :-)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

Post by jack »

care to share your pre-processor?
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Post by Killswitch »

I really don't miss REM it's much easier to use a single character for comments - although a REMSTART/REMEND system for blocks of comments would be handy.
~I see one problem with your reasoning: the fact is thats not a chicken~
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

Killswitch wrote:although a REMSTART/REMEND system for blocks of comments would be handy.
Yes!

Maybe ;< ;> or something!

I think Freak has many ideas for the IDE and this may be one of them (my opinion only, I haven't heard this) - but he had to draw a line somewhere so we actually got a v4 and some stuff was on the wrong side of the line.

Hopefully things like this will creep in as automatic updates or small 4.0x releases!
@}--`--,-- A rose by any other name ..
Tranquil
Addict
Addict
Posts: 952
Joined: Mon Apr 28, 2003 2:22 pm
Location: Europe

Re: REM Command

Post by Tranquil »

PB wrote:Are you serious?
No. I was just joking arrount the last night. It was more an ironic feature request as I saw some C64 demos from breakpoint this weekend on demoscene.tv.

Indeed something like Remstart or Remend would be nice. but I would prefere the symbolic way and not keywords for start commenting and stopping it.
Tranquil
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Post by va!n »

nice, lol
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
Tranquil
Addict
Addict
Posts: 952
Joined: Mon Apr 28, 2003 2:22 pm
Location: Europe

Post by Tranquil »

Sys 64738 8) :D
Tranquil
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Post by Killswitch »

Me too Tranquil. REMSTART/REMEND wouldn't fit in with PB's command set.
~I see one problem with your reasoning: the fact is thats not a chicken~
chris319
Enthusiast
Enthusiast
Posts: 782
Joined: Mon Oct 24, 2005 1:05 pm

Post by chris319 »

Why reinvent the wheel?

/* block
comment
here */
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

chris319 wrote:Why reinvent the wheel?

/* block
comment
here */
+1
--Kale

Image
Post Reply