This is an archive of the last SWAG release (SourceWare Archive Group) from 11/29/1997, adapted from the last remaining SWAG mirror at http://kd5col.info/swag/.
No new content has been added. Any reference to the original SWAG website at gdsoft.com or the original mirror at bdsg.org in this mirror has been removed since gdsoft.com is no longer online and bdsg.org has completely removed the mirror from their website.
SWAG is a collection of source code and program examples for the Pascal programming language. The material has been donated by various Pascal programmers from around the world who desire to contribute to the advancement of one of the greatest programming languages there is.
SWAG packets are available in 57 different categories covering EVERY aspect of the Pascal language and ALL ABSOLUTELY FREE! The material contained in SWAG is intended to be a teaching and learning aid for users of the Pascal language. Whether you are a beginner or experienced programmer, you'll find SWAG to be an invaluable source of ideas and information.
— From the original SWAG website
Why a site with code mostly from pre-Windows 95 era Turbo Pascal programming?
There are a few reasons: the first is nostalgia for anyone who programmed in this time period the SWAG was an invaluable resource. Another reason is that most of this stuff is still very useful in new programming challenges. For example, calculating checksums or sorting data is still done pretty much the same way.
There is a section on Borland Delphi (mostly version 1 and maybe some 2). There is also a lot to be learned from this code written back when concerns dealt with fitting your entire program on a 1.2 meg floppy, running in 64K memory block sizes and on slower CPUs. Learning from these examples of efficiency illustrated here can only result in better performance in our programs today.
The Pascal language is alive and well today with products like Free Pascal, Embarcedero Delphi, Turbo Pascal, Virtual Pascal, Irie Pascal, the P5 Compiler, and GNU Pascal in use making great programs. So grab a compiler (if you don't already have one), browse through the snippets, and start programming.
License
The code snippets on these pages are generally freeware or public domain as defined by their accompanying comments and copyrights. Any content without a specific license attached to it is considered to be licensed under the BSD license. (See the LICENSE file for details.)