#1212 Classes that start with a digit are not working.

v4.2.0
closed
None
complete
1
2014-04-15
2013-11-24
No

Really surprised this has never been discovered before, but it is not possible to use a class where the name begins with a digit. The lookup of the environment symbol fails and resolves to a string. This simple program can illustrate the problem:

say .3dglasses~new

::class 3DGlasses
::method init
say "Creating 3D Glasses"

Discussion

  • Rick McGuire

    Rick McGuire - 2013-11-24

    There is also a currently an inconsistency in how things are handled. The Value() BIF considers ".3DGLASSES" to be an environment lookup, while the symbolic form does not.

     
  • Rick McGuire

    Rick McGuire - 2013-11-24
    • status: accepted --> pending
    • Pending work items: code+test --> complete
     
  • Rick McGuire

    Rick McGuire - 2014-04-15
    • status: pending --> closed
     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks