Hi Akiyoshi,

On 2/12/2005 at 6:50 PM Akiyoshi NOMURA wrote:
>Hello Brent,
>
>>>Further check reveals that this bug is activated if "Text" and "Property
>>>Name" are exactly same.  Not necessarily blank.
>>>VASSAL 2.4.2 also have this bug.
>
>> Don't do this.
>
>I will not do this.
>
>> Property Name = Provide the text of this label as a property
>> Text label = Lookup property in this counter, including this label
>>
>> If they are both the same (even without the '$'s), then you get an
>infinite loop looking up the same value in itself. There is no 
>> reason why you would want to do this, it makes no sense, so don't do it.
>
>Hmmm, I can not imagine what is going on in VASSAL.

It's a bug.

>Anyway, it seems that static variable $A$ can not have value of "A"
>in current version of VASSAL.

Yes, it can, but that is not what it happening here. The Text Label is a 
special case trait, it both generates a Marker/Property value (By putting a 
name in Property Value) and uses a Marker/Property Value (by putting 
$something$ in the Text). What you are trying to do is have the Text Label both 
generate and use exactly the same Marker, which causes an infinite recursive 
loop, which eventually generates the StackOverflow. Unless you have a specific 
reason not to, I would suggest you always set the 'Property Value' field in 
text label to blank. (Once that bug fix I sent Rodney goes in of course!). 


>By the way, does it have any relation with slow-down of VASSAL when
>a game piece have many "Text Label" traits?


Quite possibly. 

I suggest you have a llok at the 'Property Sheet' trait which allows you to 
generate multiple markers in one trait.

Regards,
Brent.

____________________________________________________________
Brent Easton                       
Analyst/Programmer                               
University of Western Sydney                                   
Email: [EMAIL PROTECTED]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/IMSolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/vassalengine/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to