Author Topic: View identifiers starting with a number  (Read 2929 times)

Offline RBA

  • PixInsight Guru
  • ****
  • Posts: 511
    • DeepSkyColors
View identifiers starting with a number
« on: 2011 February 17 00:28:08 »
Is there a reason, other than by choice or to draw a parallelism with the typical syntax of variable names, why a view name cannot start with a digit?

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: View identifiers starting with a number
« Reply #1 on: 2011 February 17 11:04:55 »
Hi Rogelio,

View identifiers must be valid C identifiers for a variety of reasons. Basically, view identifiers are expressions in PixInsight. For example, they can be used in the command-line interface, and also in PixelMath expressions. In the future, the PixelMath syntax will be extended to turn it into a more sophisticated programming language, which will be available on the whole platform, not only within the PixelMath tool (most likely this won't happen until PI 2.0). The PixelMath language will also be used in the LayeredComposition process.

If we allowed free view identifiers, then we'd be compromising future development of many critical tools and features in PixInsight. On the other hand, that would require inelegant changes in the PixelMath syntax.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline RBA

  • PixInsight Guru
  • ****
  • Posts: 511
    • DeepSkyColors
Re: View identifiers starting with a number
« Reply #2 on: 2011 February 17 11:14:58 »
View identifiers must be valid C identifiers for a variety of reasons.

Got it. Thanks!