Version

License

This viewer application is copyright © 2013-2014, Peter Johnson, http://delphidabbler.com.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Credits

This software uses the following 3rd party code:

Database

The source code contained in the SWAG database is mainly freeware. You should consult the source code of each snippet for any license information. If there is no information treat the code as licensed under the MIT license.

The database itself was created from a copy of the original HTML version of the SWAG archive. The HTML version is copyright © 2001 by Jim McKeeth.

DelphiDabbler SWAG Viewer (v)

Welcome to the SWAG database

This is a viewer for the last version of SWAG (SourceWare Archive Group) release of 29 November 1997.

Note: This is a beta release. Please report any bugs.

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.

To quote from the original SWAG 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."

Why reproduce a database 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 Delphi, Virtual Pascal, Free Pascal, Irie Pascal, 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.

The code snippets in this database 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 3-Clause license.

This database is hosted and administered by Peter Johnson (delphidabbler.com). If you have any questions, comments, or suggestions about this web app, please don't hesitate to contact me. The database can also be accessed via a RESTful API. See the API documentation for details.

The original code used to generate this database is taken from a copy the original SWAG HTML mirror site © 2001 by Jim McKeeth and is used here with permission. A copy of Jim's original archive can be downloaded by clicking the Download SWAG button above. The archive is in 7z format and is 18,558Kb.