Optionally, a default value can be provided via the := operator. If a default is provided, callers can omit the parameter in question, and the default will be used instead:
method DoSomething(aParameter: String := 'Use this by default.');
what platform is this, and could you send us a (ideally minimal) test case that shows this? Also, can you rule out that it’s maybe just the debugger showing a bad value for the Double?
no, debugger shows correct value, as I can see from Result of method.
Win10, VS 2015 Pro, Elements .2479
Mit freundlichen GrĂĽssen
Marcus van den Bergh
Geschäftsführer
asthenis GmbH
Signiert durch RSA (2048 Bits) und QR-Code:
Hinweis: Diese Mail enthält eine digitale Signatur, die unter Unständen von Ihrem E-Mail Clienten als Anhang identifiziert wird, wenn der Client das Auswerten von Signaturen nicht unterstützt. Bitte ignorieren Sie die Signatur in diesem Fall.
my apologies for this inconvenience. This actually is a bug fix, not a bug; global variables and constants accidentally had the wring visibility by default, public. They’re should always have been assembly; you can mark them as public explicitly if you want them visible outside of the current project,
static != public. Consts are static, but the default visibility for all items is “assembly”, i.e. only visible in the current project. It’s always been — that consts and vars didn’t get the right visibility assigned was a bug.