tag:blogger.com,1999:blog-38057291.post9196090813052424313..comments2023-09-13T06:19:37.913-07:00Comments on On the road with Lazarus/Freepascal: Effect of using a constant parameter for string typesLuiz Américohttp://www.blogger.com/profile/10187299451635803731noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-38057291.post-7904624627389045222009-02-05T12:51:00.000-08:002009-02-05T12:51:00.000-08:00I think that using const parameters makes more rea...I think that using const parameters makes more readable code. It means that you can tell that a parameter is not modified simply by looking at the function signature rather than having to search through the code.<BR/><BR/>@Leledumbo <BR/><BR/>AnsiString types can be passed by value too. There's a definite performance gain with const params.Steve Claridgehttps://www.blogger.com/profile/01323686192726890696noreply@blogger.comtag:blogger.com,1999:blog-38057291.post-59520122334758830222008-12-18T13:55:00.000-08:002008-12-18T13:55:00.000-08:00That's interesting. I've always shied away from c...That's interesting. I've always shied away from const parameters because I feared portability issues, but maybe it's worth it :)zooplahhttps://www.blogger.com/profile/05844705158556362240noreply@blogger.comtag:blogger.com,1999:blog-38057291.post-60983732696774072642008-12-10T16:45:00.000-08:002008-12-10T16:45:00.000-08:00There's also a difference. I'll update the post wi...There's also a difference. I'll update the post with this info.Luiz Américohttps://www.blogger.com/profile/10187299451635803731noreply@blogger.comtag:blogger.com,1999:blog-38057291.post-29717736210317994092008-12-10T05:22:00.000-08:002008-12-10T05:22:00.000-08:00Well... that's because the String type is redefine...Well... that's because the String type is redefined as AnsiString. What if you use ShortString instead?leledumbohttps://www.blogger.com/profile/00255521890702721055noreply@blogger.comtag:blogger.com,1999:blog-38057291.post-64631235635009171532008-11-20T16:12:00.000-08:002008-11-20T16:12:00.000-08:00Sorry, i don't have experience with MS SQL Server....Sorry, i don't have experience with MS SQL Server.<BR/><BR/>Try Lazarus forum or Zeos ForumLuiz Américohttps://www.blogger.com/profile/10187299451635803731noreply@blogger.comtag:blogger.com,1999:blog-38057291.post-30831223744921943112008-11-20T13:40:00.000-08:002008-11-20T13:40:00.000-08:00Luis,We are looking for help with Lazarus on Linux...Luis,<BR/>We are looking for help with Lazarus on Linux. We are trying to connect to MS SQL Server from Lazarus running on Linux (using Zeos) and we cannot get it running. Do you know anyone who could help us?Unknownhttps://www.blogger.com/profile/11811299622887715717noreply@blogger.com