Mode(ID:1340/mod006)

OO language with lh anonymising 


Object-oriented language similar to C++ but featuring the ability to have a wild card assign



Structures:
Samples:
References:
  • "The Programming Language Mode: Language Definition and User Guide", Juha Vihavainen, C-1987-50, U Helsinki, 1987. view details
  • Vihavainen, Juha "Design of the Simulation Language Mode" LPh Thesis University of Helsinki, also tech report C-1987-42 view details
  • Sakkinen, Markku "The darker side of C++ revisited" Department of Computer Science and Information Systems University of Jyväskylä view details Extract: MODE example
    The example of Mode shows that at least the same benefits can be obtained with only one additional operator (or actually pseudo-variable) as with a large number of assignment operators. In an assignment in Mode, the symbol ?*? may be freely used on the right-hand side to refer to the entity denoted by the lefthand side (its old value). This facility is indeed much more general than the operators of Algol 68, C, and C++. As an example:
        bucket.value (element) := */n + 1 - p/*;