Isn't it weird that
ask-params: funct[config-file [file!] default-class-name default-fields][
probe value? 'class-name
input
either (value? 'class-name) [
probe class-name
][
]
]
ret-block: ask-params %askcodegeneration.com/csharp/simple-class/simple-class.params.txt "Person" "First Name, Last Name"
would return false for value? 'class-name
but that
ask-params: funct[config-file [file!] default-class-name default-fields][
probe value? 'class-name
input
either (value? 'class-name) [
probe class-name
][
class-name: default-class-name
]
]
ret-block: ask-params %askcodegeneration.com/csharp/simple-class/simple-class.params.txt "Person" "First Name, Last Name"
would return true for value? 'class-name
In second case class-name: default-class-name isn't even executed yet so class-name shouldn't exist in memory and so value? 'class-name should not return true.