3 points

Rugxulo rugxulo at gmail.com
Mon Jun 14 20:11:20 CEST 2010


Hi,

On 6/14/10, spir <denis.spir at gmail.com> wrote:
>
> I'm am amateur programmer, new to gpc and rather new to Pascal as well.

Ditto.   ;-)

> I wonder whether this list is a proper place to find help in learning the
> language, and in using it for a few projects of mine.

Honestly, I don't know.   :-/     Traffic here (and
comp.lang.pascal.*) seems low.

> -1- writing arrays & records
> What is the literal notation for arrays & records? Can it apply to (a) const
> definition (b) var initialisation (c) var assignment?

Borland (mis)uses "const" while ISO 10206 Extended has its own (as
Waldek mentioned).

> -2- traversing collections
> Is there a way to traverse arrays with elements directly? (--> foreach, or
> Eiffel's across)
> Is it possible to define traversal for custom collections?

Not sure, but apparently a Borland way would be to use "for blah ..."
with high() and low().

> -3- TP-like object system
> Is there more information in fpc's documentation about its object system
> (than chapter 6.8 in manual)? Else, are there good places online to find
> information about TP's object system?

The problem here is that Borland and Delphi apparently use different
object systems, so you'll have to choose one! Anyways, I'm not much on
OOP, and I definitely don't (yet) grok Object Pascal, but ...

http://edn.embarcadero.com/article/20803

"Community member Bill Meyer was kind enough to scan in and convert
the first two chapters of the TP 5.5 Object Oriented-Programming
Chapter guide into a PDF. He has done a fantastic job with it. You can
view (or download, it's 2.58MB) the Introduction and "All About OOP"
chapters of the guide from the file TP_55_OOP_Guide.pdf. While it's
old, the OOP chapter still does a good job of covering the concepts of
Object-Oriented Programming."

http://edn.embarcadero.com/article/images/20803/TP_55_OOP_Guide.pdf





More information about the Gpc mailing list