Author Topic: deleted  (Read 242 times)

acbaile

  • Newbie
  • *
  • Posts: 22
    • View Profile
deleted
« on: September 22, 2018, 02:57:10 AM »
deleted
« Last Edit: January 27, 2019, 09:15:32 PM by acbaile »

bas

  • Full Member
  • ***
  • Posts: 219
    • View Profile
Re: Keyword "local" (variable) - sense fog
« Reply #1 on: September 24, 2018, 12:25:04 PM »
The keyword local is the C2 version of C's static for local variables. I did not want to use the
keyword global, because that means something else. So C2's local variables have a function scope,
but do persist between function calls (so identical to C's static local variables). I agree that local does not
really convey that meaning, but I couldn't think of a better alternative..