Hallo Michael,

Du schriebst am Wed, 13 Nov 2013 12:54:38 +0100:

> > Never mind. "with" is very important in order to speed up array of
> > record addressing and the like.
> I disagree.
> With is just a way to save some typing.

The Pascal "with" statement was introduced with the _explicit_ intention to
allow just the mentioned optimization, although the reduction in nameing
clutter was considered beneficial as well.

> speeding the runtime execution is up to the compiler optimization (it 
> might decide to use a pointer if appropriate)

This is not neccessarily a good thing, as anyone programming experimentally
(aka "using a debugger") surely has experienced already - the code the
compiler produces may look wildly different from what the programmer
expected.

> gnu C (which does not provide "with") does this all the time if you e.g. 
> walk through an arrays of records.

And it does introduce rather interesting "effects" by doing so sometimes...

> > Have you seen the "r:" in above statement?
> Yep. My answer was just about "with" itself and not about this special 
> use of it.

The _Pascal_ "with" or the (here mentioned) _Oberon_ "with"? They're _not_
the same!

-- 
-- 
(Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung
nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem)
-----------------------------------------------------------
Mit freundlichen Grüßen, S. Schicktanz
-----------------------------------------------------------



------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to