A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: ^[0-9] package name?

  1. #1
    Member
    Join Date
    Jan 2001
    Location
    I see sea
    Posts
    94

    ^[0-9] package name?

    Hello, I wasn't able to formulate a good keyword search for this question , so apologies if it's come up a million times before.

    Given a&&b where:

    a) package names should adopt a "reverse domain" standard e.g.
    com.flashkit.utils
    b) packages, classes in fact anything can't begin with a number.

    What is the standard way to name a package originating from a domain with the lack of foresight to avoid beginning with a number. e.g.

    com.4sightlacking.utils

    Many thanks.
    Last edited by BodBod; 11-24-2007 at 02:47 PM. Reason: I removed my guess to avoid influencing answer ;-)

  2. #2
    Member
    Join Date
    Jan 2001
    Location
    I see sea
    Posts
    94
    I was thinking _underscores. e.g.

    com.4sightlacking.utils
    becomes
    com._4sightlacking.utils

    Did a bit of digging and this seems to be inline with Sun's approach:

    http://java.sun.com/docs/books/jls/s...kages.doc.html - see 7.7 at the very bottom.

    I couldn't find much else to support this though so would still appreciate a second opinion. Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center