Guess it's a bug

Moderator: MacroQuest Developers

kellewic
a lesser mummy
a lesser mummy
Posts: 38
Joined: Tue Jun 08, 2004 2:27 am
Location: AZ

Guess it's a bug

Post by kellewic » Fri Jun 02, 2006 12:51 am

The following code actually works:

Code: Select all

	x:Set[0]
	while (${x:Inc} <= ${${poleSet}.Keys})
	{
		poles:Set[${${poleSet}.Key[${x}}]}, ${x}]
	}

Here are the variable defs:

variable collection:int poles
variable string poleSet = SettingXML[${xmlSettingsFile}].Set["Fishing Poles"]
variable byte x = 0

The reason I think this shouldn't work is there is an errant '}' in the poles:Set[] call.... Key[${x}}]

Shouldn't this be a syntax error? If not, why not?

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Fri Jun 02, 2006 11:15 am

Nope, because you're creating a new key that has a } at the end of it...

e.g.

Code: Select all

poles:Set[Apple}, 1]
} is perfectly valid to use
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

kellewic
a lesser mummy
a lesser mummy
Posts: 38
Joined: Tue Jun 08, 2004 2:27 am
Location: AZ

Post by kellewic » Fri Jun 02, 2006 8:00 pm

Lax wrote:Nope, because you're creating a new key that has a } at the end of it...

e.g.

Code: Select all

poles:Set[Apple}, 1]
} is perfectly valid to use

That's the thing though... the '}' doesn't appear in the output when I iterate back over the collection. It's like it is ignored. I will re-verify this tonight though and post the code/

xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Guess it's a bug

Post by xyilla » Sun Jul 13, 2025 7:35 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Guess it's a bug

Post by xyilla » Sun Jul 13, 2025 7:37 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Guess it's a bug

Post by xyilla » Sun Jul 13, 2025 8:14 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Guess it's a bug

Post by xyilla » Sun Jul 13, 2025 8:15 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Guess it's a bug

Post by xyilla » Sun Jul 13, 2025 8:16 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Guess it's a bug

Post by xyilla » Sun Jul 13, 2025 8:17 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Guess it's a bug

Post by xyilla » Sun Jul 13, 2025 8:18 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Guess it's a bug

Post by xyilla » Sun Jul 13, 2025 8:19 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Guess it's a bug

Post by xyilla » Sun Jul 13, 2025 8:21 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Guess it's a bug

Post by xyilla » Sun Jul 13, 2025 8:22 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Guess it's a bug

Post by xyilla » Sun Jul 13, 2025 8:23 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Guess it's a bug

Post by xyilla » Sun Jul 13, 2025 8:24 pm