HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Please let us nest text macros

07-05-2008, 08:25 PM#1
Strilanc
There are cases where nested text macros can be bad, but there are cases where it is very, very good.

In order to do pair properties in HAIL, I need to nest a macro. I need to be able to go from a handle to the list of pairs it is in, which means I need two properties, and since I can't nest macros that means repeating the whole library three times. That is _ridiculous_.

God I hope they have a "new" operator for arrays (and others) in sc2, this 'repeat code for multiple instances' BS is ridiculous. The code bloat coming off of custom hashes is ridiculous. At the least help me not have to look at it.
07-05-2008, 09:13 PM#2
Vexorian
I was going to allow nesting, one day.

But now that you tell me that it would aid such an idea as pair properties, I am feeling discouraged.
07-05-2008, 10:00 PM#3
Strilanc
Quote:
Originally Posted by Vexorian
I was going to allow nesting, one day.

But now that you tell me that it would aid such an idea as pair properties, I am feeling discouraged.



Well then just forget I said anything and do it to it.

... while you're at it do one-line IFs and FOR loops. Make our code look more beautiful.
07-05-2008, 10:08 PM#4
Frozenhelfire
Code is supposed to be ugly. We can use for loops in JASS? Ugh, i've been doing the whole loop, exitwhen all along :/
07-05-2008, 10:12 PM#5
Vexorian
Quote:
We can use for loops in JASS?
You are missunderstanding.
07-05-2008, 10:24 PM#6
Frozenhelfire
? I'm new to JASS, I don't really know much about it.
07-06-2008, 01:18 AM#7
Jazradel
He's asking Vexorian to add for loops. Which he really should do.