1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 <2019> 2020 2021 2022 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 <2019> 2020 2021 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | EPICS Lua global variables |
From: | James King - UKRI STFC via Tech-talk <[email protected]> |
To: | "[email protected]" <[email protected]> |
Date: | Wed, 16 Oct 2019 16:34:42 +0000 |
Hello Tech-talk, I have been working on getting an IOC booting with Lua. Lua guidelines suggest the use of local variables rather than global. I notice that Macros are available as global variables and we cannot use local variables as they drop out of scope
due to the nature of Lua interactive mode scopes. Does anyone have any experience of using local variables in Lua IOC boot scripts? Or any information as to how global variables are contained in the Lua shell? Many thanks for any replies and help given. Kind regards, James |