Commit Graph

13 Commits (4a2048575f22b18d9bc7c6db6d8348d774e197c4)

Author SHA1 Message Date
Günther Brammer 7ae26c00b9 docs: Fix index entry of operator > 2015-12-20 00:50:43 +01:00
Sven Eberhardt 445d759a72 Change == and != to do pointer comparison on arrays and proplists (formerly === and !==). Remove === and !=== and introduce function DeepEqual for contents comparison.
There have been some bugs and crashes related to unwanted deep comparison (e.g. in the maze scenario). Scripters very rarely need deep comparison, so it should not be the default for the most commonly used operator.

This also changes behaviour of GetIndexOf to do pointer comparison.

This change has Guenther's seal of approval.
2014-04-19 22:33:31 +02:00
Günther Brammer 3c0162d797 docs: Expand the index a bit 2013-02-24 14:50:11 +01:00
Günther Brammer 23d1246be1 Script: Add === and !== operators
These operators have a stricter definition of equality than the == and !=
operators. Those are already stricter than in some other languages, so the
new ones are probably not needed very often. But if the need does arise,
there's no workaround short of modifying the data structures and checking
whether they are still the same.
2012-06-11 00:47:28 +02:00
Nicolas Hake 7efd9a9b9a Aul: Add new nil-coalescing operator ??
This short-circuiting operator will evaluate to its first operand if the operand
is not nil, or to its second operand otherwise. Its intended use is to simplify
defaulting expressions that may evaluate to nil to a valid value.
2012-04-15 15:44:01 +02:00
Tobias Zwick 481a59835c docs: talk about nil for defaults. enclose nil, false and true in <code> tags 2011-07-31 01:32:02 +02:00
Tobias Zwick 8cb2b8452d docs: fixed and translated examples 2011-07-23 22:10:44 +02:00
Armin Burgmeier df1abcd978 Switch main documentation to English, German translation now in de.po (#287) 2010-08-22 15:13:17 +02:00
Benjamin Herr 0036e356aa Fixed a bunch of trivial fuzzy docs translations
... also added some <code> tags but then became discouraged and did not
add them everywhere, oh well.
2010-04-23 12:20:09 +02:00
Günther Brammer 99040a3dd1 Script: Remove ne, eq and S= 2010-03-22 22:26:41 +01:00
Tobias Zwick 49c202ac31 docs: use naming_scheme for the docs instead of strNamScheme 2010-03-15 23:55:14 +01:00
Tobias Zwick 1f97cb4dc0 stackable-display-fix; renamed all IDs to long IDs according to script guidelines; cleanup 2010-03-02 17:24:51 +01:00
Günther Brammer 675da642c3 Add Clonk Rage developer documentation
committer: Günther Brammer <gbrammer@gmx.de>
2009-05-09 15:11:51 +02:00