<br><br><div class="gmail_quote">On Fri, Aug 5, 2011 at 1:29 PM, Sven Barth <span dir="ltr"><<a href="mailto:pascaldragon@googlemail.com">pascaldragon@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Am 05.08.2011 11:23, schrieb Luca Olivetti:<div class="im"><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
(though it was 20 years ago and I don't remember the exact syntax, I think it was<br>
<br>
with a=some.structure,b=some.other.<u></u>structure do<br>
<br>
instead of<br>
<br>
with a:=some.structure,b:=some.<u></u>other.structure<br>
<br>
but my memory could be wrong).<br>
</blockquote>
<br></div>
Well... if another Pascal dialect had it the changes might be higher that it gets integrated into FPC.<br>
<br>
So it might be useful to research the exact with syntax of Texas Instruments' Pascal.<br>
<br>
Regards,<br><font color="#888888">
Sven</font><div><div></div><div class="h5"><br></div></div></blockquote></div><br><br>Luca shared an interesting fact, so I tried to find more information. He probably meant UCSD Pascal, as I see this is a very interesting system, mentioned also in the lazarus wiki ( <a href="http://wiki.freepascal.org/UCSD_Pascal">http://wiki.freepascal.org/UCSD_Pascal</a> ). I downloaded the sources of the system, but I could not find the examples of similar syntax inside many with statements... Maybe there are other sources.<br>
<br>But during the research another interesting specie was found. It's called Sun Workshop Pascal Compiler <br> <a href="http://www.informatik.uni-hamburg.de/RZ/software/SUNWspro/pascal/user_guide/index.html">http://www.informatik.uni-hamburg.de/RZ/software/SUNWspro/pascal/user_guide/index.html</a><br>
<br>It supports (supported) standard pascal, with some extensions, that is made to several language constructions including 'with'<br>So on the page <br> <a href="http://www.informatik.uni-hamburg.de/RZ/software/SUNWspro/pascal/lang_ref/ref_state.doc.html">http://www.informatik.uni-hamburg.de/RZ/software/SUNWspro/pascal/lang_ref/ref_state.doc.html</a><br>
<br>you can see the following example<br><br> with new_patient: new, old_patient: old do begin<br> new.LastName := 'Smith';<br> new.FirstName := 'Abby';<br> new.Sex := Female;<br> old.LastName := 'Brown';<br>
old.FirstName := 'Henry';<br> old.Sex := Male<br> end;<br><br>Using ':' looks a little strange, but at least it worked and probably didn't conflict with existing syntax. <br><br>Max <br>