On Tue, Nov 17, 2009 at 7:19 PM, JoshyFun <joshy...@gmail.com> wrote: > Hello FPC-Pascal, > > Tuesday, November 17, 2009, 8:47:03 PM, you wrote: > > c> Can the Fill... functions be changed to have the first parameter "out" > c> instead of "var" ? Surely they don't use it as an input parameter. > > Write your own "fillchar" like function and inline it, something like: > > procedure MyFillChar(out x; count: SizeInt; Value: char); inline; > begin > {$PUSH} > {$HINTS OFF} > FillChar(x,count,Value); > {$POP} > end; > > -- > Best regards, > JoshyFun
Shouldn't this code too raise a warning? -Flávio _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal