denis.spir at gmail.com
Mon Jun 14 11:32:12 CEST 2010
I'm am amateur programmer, new to gpc and rather new to Pascal as well. 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.
If yes, then below is a first series of diverse questions. I will have some more as I discover the language (including some stupid ones, certainly ;-).
[Note: I have a candidate answer to the questions, but ask anyway to be sure, and stop wondering.]
-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?
Is there a way to write back arrays & records to output (tostring(x), according to standard notation)? If not, how to write such a tool func? (super useful for learning, prototyping, testing...)
Is it at all possible to write the following 'show' tool func:
show(x); // 'x : 1' --> stdout
show(x+1); // 'x+1 : 2' --> stdout
(my dream debugging tool)
-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?
-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?
vit esse estrany ☣
More information about the Gpc