String Overwrite Command Line Error
geologic
In a procedure,
function strchk()
string/g test1 = "a"
string/g test1 = "b"
print test1
end
string/g test1 = "a"
string/g test1 = "b"
print test1
end
does redefine test1.
Not a huge deal, just thought I'd point it out. They don't seem to be exactly equivalent.
September 30, 2015 at 07:58 am - Permalink
string test1 = "a"
string test1 = "b"
print test1
end
won't compile. String and String/G on the command line both make global strings because there is no such thing as a local variable from the command line.
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
September 30, 2015 at 12:36 pm - Permalink
October 2, 2015 at 08:13 am - Permalink