Well, my purpose is to make the source code look comfortable, not how the binary code is generated :)<div><br></div><div>Well, again, I got a good idea from Andreas.</div><div><br></div><div>Thanks to all of you.<br><br>
在 三, 1月 9, 2013 at 7:45 下午,leledumbo <leledumbo_cool@yahoo.co.id> 写道:<br>
<blockquote type="cite">> As far as I know pascal inline directive only affect the compiler, not how
<br>you write code. Could you please give an example how inline function helps
<br>in my question?
<br>
<br>Yes it does, what I mean is to create something that Point() function does
<br>and using inline directive it's nearly the same as assigning record via
<br>literal. Well, if you know how it's done by other compilers, record literal
<br>assignment is actually broken down into field by field assignment. So if you
<br>make a function that returns the record with given arguments as record
<br>fields, with inline directive the final code would be the same. Well...
<br>maybe you'll need some other directives as well, but it's just my thought. I
<br>never really compare the generated code...
<br>
<br>
<br>
<br>--
<br>View this message in context: <a href="http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-record-literal-in-FPC-tp4028464p4028478.html">http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-record-literal-in-FPC-tp4028464p4028478.html</a>
<br>Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.
<br>
<br>--
<br>_______________________________________________
<br>Lazarus mailing list
<br>Lazarus@lists.lazarus.freepascal.org
<br><a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a>
<br></blockquote><br></div>