Menu

#496 struct::stack name collisions

open
9
2004-08-09
2004-08-08
No

The command ::struct::stack generates a new stack object with an
automatically generated name. If the automatically generated
name is the name of an existing command, ::struct::stack throws
an error instead of automatically generating a unique name.

The only way to protect against this is to specify the name
explicitly, which works; however, it's an undocumented feature.

Discussion

  • Andreas Kupries

    Andreas Kupries - 2004-08-09
    • priority: 7 --> 9
     
  • Andreas Kupries

    Andreas Kupries - 2004-08-09

    Logged In: YES
    user_id=75003

    Right. Worse, the stack object command is always in the
    global namespace. Graph for example on the other hand
    generates in the callers namespace first. Definitely in need
    of an update. Still the first/old style of command
    generation. I believe I will add serialization as well
    (trivial for stack). Maybe enough to go v2 for that package.