Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Metal names conflict with models

#3098

Hello,

By default, the metals are named only with their name.
Because of that, there's a possible conflict if we have a metal using the same name than a model.
If we have a metal "Example" and a model with the same name, we won't be able to call the model Example inside our metal because of this conflict name.

My suggestion would be to append "_metal" to the filename and "Metal" to the classname.

Reported by Damien MATHIEU · August 26th, 2009 @ 02:45 PM

State: invalid
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Damien MATHIEU
  2. Francesc Esplugas
    Francesc Esplugas

    Still not had this kind of problems but think it's a problem some people might find in the future.

    +1

    September 14th, 2009 @ 10:25 PM

  3. Damien MATHIEU
    Damien MATHIEU
    • Tag changed from metal to 2.3, metal, patch

    September 17th, 2009 @ 01:12 PM

  4. Damien MATHIEU
    Damien MATHIEU

    Bump again. To bad to see that nobody (except Francesc. Thanks) is interested.

    September 21st, 2009 @ 02:57 PM

  5. CancelProfileIsBroken
    CancelProfileIsBroken
    • Tag changed from 2.3, metal, patch to 2.3, bugmash, metal, patch

    September 25th, 2009 @ 12:42 PM

  6. Elad Meidar
    Elad Meidar

    +1 verified. not sure that this is the right solution thu, maybe there's a way to scope the metal models under Metal:: ?

    September 26th, 2009 @ 02:08 AM

  7. Yehuda Katz (wycats)
    Yehuda Katz (wycats)
    • Tag changed from 2.3, bugmash, metal, patch to 2.3, metal, patch

    September 26th, 2009 @ 02:16 AM

  8. Yehuda Katz (wycats)
    Yehuda Katz (wycats)
    • State changed from new to invalid

    This would be a potentially confusing change in 2.3 and is moot in 3.0.

    September 26th, 2009 @ 02:17 AM