b-000221-2

ldmud-3.2.9/src/done/b-000221-2 · 832 B

From the archive ldmud-329.tar.gz

Download the archive   « Back to the archive contents

From:    Jones@Zeittunnel
Short: foreach() and redeclarations
Date:    Tue Feb 22 01:59:27 2000
Type: Bug
State: Abandoned - not reproducible.

Hi,

also einmal das redeclare von zaehlvariablen klappt nich so ganz
und irgendwie gibts auch n fehler wegen redeclare wenn man das innem neuen
unterbereich macht...

hier der code...

void demonstrate_bugs()
{
    //zuerst das normale redeklare ...
    object *obs;
    mixed *foo;

    obs=users();
    foreach( object ob : obs )
        ob->query_age();

    foo=environment( this_player() )->query_all_v_items();
    foreach( mixed ob : foo )
        m_indices( ob );

    //und nun der zweite fehler
    if( this_player() )
    {
        mixed *obs;

        obs=({ ([0:0]), this_player() });
        foreach( mixed m : obs );
    }
}

Analysis:
Not reproducible with 3.2.8-dev.175

Site Stats

Snippets: 1791
Codebases: 571