Qbasicnews.com
April 12, 2021, 06:10:25 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: 1 [2] 3
  Print  
Author Topic: multi-line REM ?  (Read 10399 times)
Z!re
*/-\*
*****
Posts: 4599


« Reply #15 on: May 04, 2005, 09:33:40 PM »

VonGodrics IDE supports multireming and unreming rows. Tongue
Logged
Mitth'raw'nuruodo
Ancient Guru
****
Posts: 515



WWW
« Reply #16 on: May 04, 2005, 09:40:37 PM »

I know, I know but I am still learning.

Let me get this strait:

IF will be executed at runtime

#IF will be executed at compile time?

Is that right?

BTW, I LOVE the /* and  */, and the //  :wink:
Logged

i]"But...it was so beautifully done"[/i]
VonGodric
Ancient Guru
****
Posts: 674



WWW
« Reply #17 on: May 05, 2005, 02:28:39 AM »

v!c pliiz DON'T add comment blocks. It would need so mutch haacking in the scintilla...

Beside I added to FBIde block comment in/out and who needs
#if 0
...
#endif does the job

yes that's preprocessor stuff. Actually it's evulated even before actual compilation.

#if 0 <- equals to false so it won't touch it.
beside you can do some nice stuff like.

#define IncludeSound 0

...code...

#if IncludeSound
...sound code...
#endif
Logged

url]http://fbide.sourceforge.net/[/url]
MystikShadows
Ancient Guru
****
Posts: 542



WWW
« Reply #18 on: May 05, 2005, 03:45:20 PM »

I'm with VonGodric....

as the old saying goes..

saving keystrokes is the job of the IDE, not the language :-)
Logged

hen they say it can't be done, THAT's when they call me ;-).




need hosting:  http://www.jc-hosting.net
All about ASCII: http://www.ascii-world.com
shiftLynx
Wandering Guru
***
Posts: 340



WWW
« Reply #19 on: May 05, 2005, 03:58:57 PM »

Here is a quick multi-comment hack for if you really prefer to read 'comment' and 'endcomment' in the code:

[syntax="FB"]
#define comment      #if 0
#define endcomment   #endif

print "hello"
comment
   this is a multi-line comment.
   blah blah.
endcomment
print "world"

while inkey$ = "": wend
[/syntax]
Logged

img]http://www.cdsoft.co.uk/misc/shiftlynx.png[/img]
v3cz0r
I hold this place together
*****
Posts: 924



WWW
« Reply #20 on: May 05, 2005, 04:09:23 PM »

I thought it wouldn't be so complex with Scintilla, anyways, if C-ish comments were added, they could be used in the middle of expressions too (foo = /* ... */ bar), but as keeling said.. that would be another blasphemy, and jesus horse is tired of been crucified.

How the other BASIC's added support for multi-line comments? I've no idea.. VB and PB don't support that, if i remember.
Logged

shiftLynx
Wandering Guru
***
Posts: 340



WWW
« Reply #21 on: May 05, 2005, 04:18:53 PM »

Personally, I think that only having single-line comments makes it neater in BASIC. There's nothing wrong with having to type an extra character per line at all; most people do it in C comments anyway:

[syntax="C"]
/*
 * Blah
 * Blah
 * Blah
 */
[/syntax]

If people can't live without multi-line comments then they will just have to suffer with horrible preprocessor hacks. Smiley Stick to what you think is best, v1c; whatever you do, somebody is bound to complain one way or the other.

I notice there is a great lack of appreciation in most posts about FreeBASIC; people only seem to be motivated to post when they find something that annoys them. It must be tough for you.
Logged

img]http://www.cdsoft.co.uk/misc/shiftlynx.png[/img]
ShadowWolf
Wandering Guru
***
Posts: 389



« Reply #22 on: May 05, 2005, 04:47:36 PM »

shift that human nature the people that are content don't speack out.  it only the people that are dissatisifed that speak out this can be seen everywere for example in politices it only the Nuts that you ever really see protesting crap you never see the middle ground people protesting crap

 (there are exception to this i.e. when the middle ground people relize they got screwed by the nuts then they finaly get off there collective asses to protested but at this point there no longer content)
Logged
Anonymous
Guest
« Reply #23 on: May 05, 2005, 07:23:04 PM »

HAIL V1c !!!
Logged
VonGodric
Ancient Guru
****
Posts: 674



WWW
« Reply #24 on: May 06, 2005, 02:39:11 AM »

It's everything to do with the lexer module that is used in scintilla. I'v already hacked VB's lexer beyond recognition. So it's not even that hard as I made it look in the first place. But I really think that you shouldn'tbloat the namespace more then it already is... but final decision is yours of course Tongue
Logged

url]http://fbide.sourceforge.net/[/url]
v3cz0r
I hold this place together
*****
Posts: 924



WWW
« Reply #25 on: May 06, 2005, 04:48:27 PM »

Well, there was no consensus, so let it the way it is now, at end it would be like shiftLynx said, people would type a new char on every line to make sure that was a multi-line comment.. to comment out code that is being tested or such, #if 0 #endif can do the job..

Lets open a committee to take new decisions on language changes ;)
Logged

Antoni Gual
Na_th_an
*****
Posts: 1434



WWW
« Reply #26 on: May 06, 2005, 08:11:00 PM »

A camel is a horse designed by a comiteee...
Logged

Antoni
relsoft
*/-\*
*****
Posts: 3927



WWW
« Reply #27 on: May 07, 2005, 05:43:54 AM »

If it ain't broke, don't fix it. :*)
Logged

y smiley is 24 bit.


Genso's Junkyard:
http://rel.betterwebber.com/
diakin
Member
*
Posts: 72



WWW
« Reply #28 on: May 07, 2005, 09:35:52 AM »

Quote from: "shiftLynx"

[...]
If people can't live without multi-line comments then they will just have to suffer with horrible preprocessor hacks. Smiley Stick to what you think is best, v1c; whatever you do, somebody is bound to complain one way or the other.

I notice there is a great lack of appreciation in most posts about FreeBASIC; people only seem to be motivated to post when they find something that annoys them. It must be tough for you.


People can live without many things -TV, PC, SMS etc.
But it not means that we don't need to do anything to improve our life.
All  suggestions in this forum was send out not for punish Victor, but for improving FreeBasic. Of course is not so easy for Victor to filter all this "buzz"  :-?

Multiline comment is not the first necessity thing  but it's useful.
Logged

ith best regards, Andrew Shelkovenko.
http://www.wildgardenseed.com/RQDP/FreeBasic/index.html - FreeBasic documentation Project
shiftLynx
Wandering Guru
***
Posts: 340



WWW
« Reply #29 on: May 07, 2005, 11:11:08 AM »

Thank you, I didn't realise people cannot live without PCs, TVs and SMS.
Logged

img]http://www.cdsoft.co.uk/misc/shiftlynx.png[/img]
Pages: 1 [2] 3
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!