[Prev][Next][Index][Thread]
Re: MIME for Dylan sourcecode?
In article <bruce-8CB2CC.08530703092001@news.akl.ihug.co.nz>, Bruce
Hoult <bruce@hoult.org> wrote:
> Now, I'm no expert on MIME
Well, that should now be obvious :-) The example should have been more
like...
library: helloworld
executable: helloworld
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary=-------
---------
module: dylan-user
define library helloworld
use common-dylan;
use io;
end library;
define module helloworld
use common-dylan;
use format-out;
end module;
---------
module: helloworld
synopsis:
author:
copyright:
define function main(name, arguments)
format-out("Hello, world!\n");
exit-application(0);
end function main;
// Invoke our main() function.
main(application-name(), application-arguments());
-----------
... because two "-" are added before each use of the boundary and two
more "-" are added at the end of the last one.
-- Bruce
References: