You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/server/ruby/lib/sonicpi/lang/core.rb
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2751,8 +2751,8 @@ def define(name, &block)
2751
2751
raiseArgumentError,"A function called #{name} is already part of Sonic Pi's core API. Please choose another name."
2752
2752
end
2753
2753
2754
-
ifblock.arity == 0 && name.to_s =~ /^[A-Z]/
2755
-
__delayed_warning"Functions with no required parameters shouldn't start with a capital letter."
2754
+
ifname.to_s =~ /^[A-Z]/
2755
+
__delayed_warning"Warning - defined function '#{name}' starts with a capital letter and may not behave as expected. Please start functions with a lower-case letter."
0 commit comments