For Programmers: Free Programming Magazines  


Home > Archive > Compilers > July 2006 > New Seed7 Release 2006-07-24









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author New Seed7 Release 2006-07-24
thomas.mertes@gmx.at

2006-07-25, 7:02 pm

Hello,

I have released a new version of Seed7: seed7_05_20060724.tgz

In the Seed7 programming language new statements and operators
can be declared easily. Types are first class objects and therefore
templates/generics need no special syntax. Object orientation is
used when it brings advantages and not in places when other
solutions are more obvious.

Seed7 is covered by the GPL (and LGPL for the Seed7 runtime library).

Changelog:
- A new example program (bifurcation) was added.
- A trim function to remove leading and trailing spaces
from strings was added.
- The windows graphic driver was improved to support
windows 98.
- A changelog (chlog.txt) was added.

And Now for Something Completely Different.

This example declares a subtype for roman numbers

$ include "seed7_05.s7i"; # Standard Seed7 library
include "wrinum.s7i"; # Import str(ROMAN, ... )

const type: romanNum is subtype integer;

const func string: str (in romanNum: number) is
return str(ROMAN, number);

enable_output(romanNum);

const proc: main is func
local
var romanNum: number is 0;
begin
for number range 1 to 3999 do
writeln(number);
end for;
end func;

Greetings Thomas Mertes

Seed7 Homepage: http://seed7.sourceforge.net
Project page: http://sourceforge.net/projects/seed7

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com