Article View: comp.sys.mac
Article #14859TML Source Code Lib and Database Toolkit
From: leeke
Date: Wed, 04 Mar 1987 16:30
Date: Wed, 04 Mar 1987 16:30
41 lines
2409 bytes
2409 bytes
I have just about finished porting the TML source code library to Turbo
Pascal and while most of it went well there are definitly a few differences.
I would also like to hear from anyone who has used the TML database kit - if
you are using it with Turbo I would especially like to hear from you.
Comments about the port:
1) The directives for loading resources are different. $R in Turbo $L in TML.
2) Directive statements are basically fixed format in Turbo.
e.g. {$R MyRsrcs } will work in TML, but not in Turbo. In Turbo it will look
for "MyRsrcs ", so the bracket has to be up tight against the filename.
Same thing goes for setting the creator name and type - no spaces between
the 4 letter fields in Turbo.
3) TML allows complex (e.g. Rect) structures to be returned by functions,
Turbo won't. Functions that depend on this are most easily changed to have
an extra var parameter and turned into procedures.
4) Turbo adds about 7k to the TML compiled size since it doesn't have a
smart linker.
5) One routine is consistently bombing (heirarchical menus) with an
address error - haven't had time to figure it out.
Overall the souce code is a nice way to avoid doing it all yourself and there
are no limitations on usage of the compiled code. According to MacTutor there
is a very serious bug in the way they the source code library does custom menu
definitions (they give a fix), so that may be the address error I'm seeing.
I think it was last October's MacTutor, but I can't be sure.
Steve Leeke
--
Steven D. Leeke, Center for Integrated Systems, Stanford University
{ucbvax,decvax}!decwrl!glacier!leeke, leeke@cascade.stanford.edu
"I suppose they don't use money in the 23rd century?"
Technical Details
Message-ID:
<286@cascade.STANFORD.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!bellcore!faline!ulysses!gatech!mcnc!seismo!husc6!sri-unix!sri-spam!ames!ucbcad!ucbvax!decvax!decwrl!labrea!cascade!leekeShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!bellcore!faline!ulysses!gatech!mcnc!seismo!husc6!sri-unix!sri-spam!ames!ucbcad!ucbvax!decvax!decwrl!labrea!cascade!leeke From: leeke@cascade.UUCP Newsgroups: comp.sys.mac Subject: TML Source Code Lib and Database Toolkit Message-ID: <286@cascade.STANFORD.EDU> Date: Wed, 4-Mar-87 11:30:12 EST Article-I.D.: cascade.286 Posted: Wed Mar 4 11:30:12 1987 Date-Received: Fri, 6-Mar-87 22:35:35 EST Reply-To: leeke@cascade.UUCP (Steven D. Leeke) Organization: Stanford University Computer Systems Laboratory Lines: 41 Keywords: Port to Turbo