Flower Box comments

A forum for reporting bugs NOT related to custom plugins.

Moderator: MacroQuest Developers

User avatar
Fibby
a lesser mummy
a lesser mummy
Posts: 58
Joined: Mon Nov 15, 2004 2:18 am

Flower Box comments

Post by Fibby » Fri Nov 26, 2004 6:46 pm

When trying to put a "FlowerBox comment" into some of my macro code, I get the following Error...

"Cannot call when a macro isn't running"

Example:

Code: Select all

|***********************************
|* My New Macro                    *
|***********************************

#turbo 10

|***********************************
|* Main Macro Code                 *
|***********************************
Sub Main
	/echo My New Macro
/return
However, this works fine...

Code: Select all

|-----------------------------------
|- My New Macro                    -
|-----------------------------------

#turbo 10

|-----------------------------------
|- Main Macro Code                 -
|-----------------------------------
Sub Main
	/echo My New Macro
/return
Not a big issue.. but an issue non-the-less... I *LIKE* having flowerbox comments for header blocks, etc, etc.
True genius is not knowing all the answers
It's knowing where to find them.

User avatar
Fibby
a lesser mummy
a lesser mummy
Posts: 58
Joined: Mon Nov 15, 2004 2:18 am

Post by Fibby » Fri Nov 26, 2004 6:55 pm

I realize that |** and **| are block comment delimiters..

But if the line starts with | then it should register as a commented line anyway. Or perhaps it would be a good idea to change the block comment delimiters to be differant from the single line comments..

ie, // and /*

Just a thought.
True genius is not knowing all the answers
It's knowing where to find them.

bam
a ghoul
a ghoul
Posts: 149
Joined: Thu May 13, 2004 11:53 pm

Post by bam » Sat Nov 27, 2004 12:08 am

Uhm, works the same as C I beleive. Once you put a |** everything until it sees a **| is part of the comment. No reason to change the way the code is read.. you just have to code it correctly I'm afraid.

User avatar
Fibby
a lesser mummy
a lesser mummy
Posts: 58
Joined: Mon Nov 15, 2004 2:18 am

Post by Fibby » Sat Nov 27, 2004 2:49 am

Yes, but the differance is that in C.. a single line comment is //, not /...

That way, it's impossible to mistake a single line comment delimiter with a block comment delimiter.

If the MQ comment system was more like the C comment system.. Single lines would be || with block comments being |* and *|
True genius is not knowing all the answers
It's knowing where to find them.

bam
a ghoul
a ghoul
Posts: 149
Joined: Thu May 13, 2004 11:53 pm

Post by bam » Sat Nov 27, 2004 3:29 am

changing

Code: Select all

|*********************************** 
|* My New Macro                    * 
|*********************************** 
to

Code: Select all

|*********************************** 
|* My New Macro                    * 
|***********************************|
is so hard?

User avatar
Fibby
a lesser mummy
a lesser mummy
Posts: 58
Joined: Mon Nov 15, 2004 2:18 am

Post by Fibby » Sat Nov 27, 2004 4:40 am

I never said it was difficult..

I just said it was unexpected behavior.
True genius is not knowing all the answers
It's knowing where to find them.

magictiger
a snow griffon
a snow griffon
Posts: 450
Joined: Sun Mar 21, 2004 2:24 pm

Post by magictiger » Sat Nov 27, 2004 7:04 am

Not unexpected at all when you're fugging starting with the block comment delimiter. :P