Changes between Version 20 and Version 21 of CurrentlyProposedLanguage


Ignore:
Timestamp:
Nov 8, 2010 9:22:16 AM (13 years ago)
Author:
sunshine
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CurrentlyProposedLanguage

    v20 v21  
    5353||if condition cond holds then A occurs else B occurs ||        if cond then A else B || Lowest ||
    5454||Repeat some action while condition cond holds       ||do A while cond || Same as if ||
    55 ||A such that cond || A | cond || Same as not ||
     55||A for which condition cond holds || A | cond || Same as not ||
    5656
    5757= Objects =
     
    6767||A’s initial state is Z ||     A := { state = Z} ||
    6868||A has an object M of type Y and with initial value I ||       A := { Y M = I} ||
    69 ||A is an alias for B in state C        || B := A{ state = C}||
     69||B is an alias for A in state C        || B := A{ state = C}||
    7070||There are N objects of type A || |A|,,N,, ||
    7171||A is different than B||       A != B||
     
    7373
    7474= States and state changes =
    75 State name may be just a symbolic name or it may be associated with an object variable holding some value. An object in a given state always responds in the same manner to the same stimuli.
     75State name may be just a symbolic name or it may be associated with an object variable holding some value. An object in a given state always responds in the same manner to the same stimuli. Both state and variable values can be changed during a state change.
     76States are really there just as a memory of which actions object has undergone and what may come next. For example once the Vulnerable object is
     77in infected state it starts scanning.
     78
    7679
    7780State change names start with s followed by a number. They are defined within curly brackets by specifying the object and its new state, like this:
    7881
    7982{{{s1 := {object.state = newstate}}}}
     83
    8084
    8185= Events =