Elvas Tower: Undeclared variables in Signal scripts - Elvas Tower

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Undeclared variables in Signal scripts Rate Topic: -----

#1 User is offline   roeter 

  • Vice President
  • Group: Status: Elite Member
  • Posts: 2,426
  • Joined: 25-October 11
  • Gender:Male
  • Country:

Posted 16 November 2023 - 04:02 AM

According to the signal script definition, variables used in a script must be defined. However, at present there is no test if this indeed is done correctly.
If (accidently) a variable is used which is not defined, no error or warning is generated, but the variable may not be processed as expected.

My intention is to correct this flaw in the script processing. The setup will be that a warning will be generated when the script is processed if an undeclared variable is used. It will only be a warning so the processing will continue as normal.

Regards,
Rob Roeterdink

#2 User is offline   engmod 

  • Open Rails Developer
  • PipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 1,783
  • Joined: 26-February 08
  • Gender:Male
  • Location:Eltham, Victoria, Australia
  • Simulator:ORNYMG
  • Country:

Posted 16 November 2023 - 09:38 AM

Hi Rob,

That is a very good idea.
Another problem highlighted in signal processing!!

#3 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Status: Elite Member
  • Posts: 7,014
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 16 November 2023 - 10:00 AM

Good idea.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users