godot/modules/gdscript
Hein-Pieter van Braam 833c3917b2 Allow booleanization of all types
We now allow booleanization of all types. This means that empty versions
of all types now evaluate to false. So a Vector2(0,0), Dictionary(),
etc.

This allows you to write GDScript like:
if not Dictionary():
  print("Empty dict")

Booleanization can now also no longer fail. There is no more valid flag,
this changes Variant and GDNative API.
2017-09-19 18:55:31 +02:00
..
config.py style: Fix PEP8 blank lines issues in Python files 2016-11-01 00:35:16 +01:00
gd_compiler.cpp Move Variant::evaluate() switch to computed goto 2017-09-17 22:49:23 +02:00
gd_compiler.h Dead code tells no tales 2017-08-27 22:13:45 +02:00
gd_editor.cpp Move Variant::evaluate() switch to computed goto 2017-09-17 22:49:23 +02:00
gd_function.cpp Allow booleanization of all types 2017-09-19 18:55:31 +02:00
gd_function.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
gd_functions.cpp Changed/Added descriptions in @GDScript. Added examples. Fixed return types of two … (#11146) 2017-09-12 15:00:29 +02:00
gd_functions.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
gd_parser.cpp Move Variant::evaluate() switch to computed goto 2017-09-17 22:49:23 +02:00
gd_parser.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
gd_script.cpp Dead code tells no tales 2017-08-27 22:13:45 +02:00
gd_script.h Fixes language overridden external editors 2017-09-03 21:23:36 +02:00
gd_tokenizer.cpp Dead code tells no tales 2017-08-27 22:13:45 +02:00
gd_tokenizer.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
register_types.cpp Dead code tells no tales 2017-08-27 22:13:45 +02:00
register_types.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
SCsub SCsub: Add python shebang as a hint for syntax highlighting 2016-10-17 20:10:46 +02:00