Fixing issue #1782

This patch establishes "nan", "inf" and "-inf" as
valid values for tl::Variant, so corresponding
PCell parameters can be serialized and are
properly managed.
This commit is contained in:
Matthias Koefferlein
2024-07-13 18:07:45 +02:00
parent f0b15e1049
commit 0df6339f4e
6 changed files with 353 additions and 5 deletions
@@ -361,6 +361,10 @@ module RBA
def param(name, type, description, args = {})
if ! args.is_a?(Hash)
raise("Too many positional arguments for 'param' (3 expected) - use named arguments for default value etc.")
end
if name !~ /^[_A-Za-z]\w*$/
raise "Invalid parameter name #{name} (needs to be a word)"
end