The assert()
method's behavior is different between 3.x and 4.0 .
#5455
Daylily-Zeleen
started this conversation in
Engine Core
Replies: 1 comment 3 replies
-
is a bug: godotengine/godot#47157 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In 4.0,
assert()
is second argumentmessage
must be a staticString
, but in 3.x, it can be dynamic.For example:
Of course, we can use other way to express the detail error message for the
assert()
, like code a comment near theassert()
,but obviously, implement dynamic
String
formessage
is the best way.What is the reson why 4.0 let
message
static?Beta Was this translation helpful? Give feedback.
All reactions