Re: [fpc-pascal] Sample unit code

2009-04-04 Thread Pete Cervasio
On Saturday 04 April 2009 11:40:03 Francisco Reyes wrote: > > I guess I could try one unit at a time until I find a simple one, but I > figure if anyone knows of a simple unit that may be easy to read, that may > be a better starting point. Here's a simple unit that may help. I have occasion to a

Re: [fpc-pascal] Sample unit code

2009-04-04 Thread Mattias Gaertner
On Sat, 04 Apr 2009 12:56:51 -0400 Francisco Reyes wrote: > Michael Van Canneyt writes: > > > I'll add more examples. > > Thanks. > I will also go over the existing unit documentation and send you some > thoughts and suggestions from a newbie's point of view. Often what is > clear to an experi

Re: [fpc-pascal] Sample unit code

2009-04-04 Thread Francisco Reyes
Michael Van Canneyt writes: I'll add more examples. Thanks. I will also go over the existing unit documentation and send you some thoughts and suggestions from a newbie's point of view. Often what is clear to an experienced developer is not so clear for a newcomer. All Free Pascal sources

Re: [fpc-pascal] Sample unit code

2009-04-04 Thread Michael Van Canneyt
On Sat, 4 Apr 2009, Francisco Reyes wrote: > Michael Van Canneyt writes: > > > What is not clear ? > > For starters I don't really follow the diagrams in the ref document. It > probably is some type of formal definition, but I am neither familiar with it, > nor seem to get it. Even when I look

Re: [fpc-pascal] Sample unit code

2009-04-04 Thread Francisco Reyes
Michael Van Canneyt writes: What is not clear ? For starters I don't really follow the diagrams in the ref document. It probably is some type of formal definition, but I am neither familiar with it, nor seem to get it. Even when I look at a simpler case like procedure declaration I can't fo

Re: [fpc-pascal] Sample unit code

2009-04-04 Thread Michael Van Canneyt
On Sat, 4 Apr 2009, Francisco Reyes wrote: > Could anyone share sample code for a unit? > Looking at the ref.pdf I don't really follow it. > The examples included are not meaningful to this pascal newbie. :-( What is not clear ? > > Alternative any unit package on the site that may be a good

[fpc-pascal] Sample unit code

2009-04-04 Thread Francisco Reyes
Could anyone share sample code for a unit? Looking at the ref.pdf I don't really follow it. The examples included are not meaningful to this pascal newbie. :-( Alternative any unit package on the site that may be a good example would be just as great. As I work on a small program I find parts