<div dir="ltr"><div dir="ltr">On Fri, Jul 5, 2019 at 1:14 PM Ryan Joseph <<a href="mailto:genericptr@gmail.com">genericptr@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
This may present a bit of problem then because you don't appear to be able to opt-in to long strings just for constants. $h+ will always be required for multi-line strings but I don’t want the rest of my “string” types to turn into ansistrings. Is there any solution to this?<br></blockquote><div><br></div><div>I don't think it's really true that you'll *always* need long strings for multi-line stuff, however, if you're concerned about this in general there is in fact a way to switch between {$H+} and {$H-}:</div><div><br></div><div>program Example;<br><br>{$push}<br>{$H+}<br>var Ansi: String;<br>{$pop}<br>var Short: String;<br><br>begin<br>  WriteLn(GetTypeKind(Ansi));<br>  WriteLn(GetTypeKind(Short));<br>end.<br></div><div><br></div><div>which prints:</div><div><br></div><div>tkAString</div><div>tkSString</div><div><br></div><div>indicating they're the types you'd want / expect.</div></div></div>