Forum > Beginners

$V-

(1/1)

Nebulix:
I get an error message : String types have to match exactly in $V+ mode. Though I put {$V-} in my program and units. How can I put the $V- options as default ?

howardpc:
Do your routine(s) that give this error really need to pass (presumably) shortstring parameters by reference? Would passing by value be OK (which never invokes the $V compiler check)?

Nebulix:
I had a string[80] that I changed into a plain string and the compilation went on. Though I wish really to understand how the compilator options work in FP.

Leledumbo:

--- Quote from: Nebulix on May 26, 2015, 05:19:43 pm ---I had a string[80] that I changed into a plain string and the compilation went on. Though I wish really to understand how the compilator options work in FP.

--- End quote ---
http://www.freepascal.org/docs-html/prog/progsu77.html

Navigation

[0] Message Index

Go to full version