HDTenEightyP/NetNews huggingface dataset:
From: sherritp@NeXTwork.Rose-Hulman.Edu (Timothy P. Sherrill)
Newsgroups: comp.sys.mac.programmer
Subject: Is there a good ADA compiler?
Date: 10 Jan 1993 22:47:44 GMT
Organization: Computer Science Department at Rose-Hulman
Reply-To: sherritp@NeXTwork.Rose-Hulman.Edu (Timothy P. Sherrill)
NNTP-Posting-Host: o231-11.nextwork.rose-hulman.edu
Keywords: ada, compiler


I'm a computer science major a Rose-Hulman Institute of Technology taking a  
Data Structures course in Ada.  I had seen mention of a public domain or  
shareware Ada compiler in comp.sys.mac.digest.  At the time, I dismissed the  
thought of owning my own fast Mac as being wishful thinking, but, as life would  
have it, I was smiled upon and am getting a fast Mac soon!

Please help by providing any information about Ada on the Mac, as it would be  
_very_ useful (the night before projects are due  make using the network an  
unappealing choice).  :^)

Thanks in advance for your help.

PS  e-mail responses would be best, as I don't regularly read this forum.

--
####  #  #  #  #####  Tim Sherrill at Rose Hulman Institute of Technology
#  #  #  #  #    #        sherritp@nextwork.rose-hulman.edu
##    ####  #    #
#  #  #  #  #    #             Anything can happen...  Rush
Newsgroups: comp.sys.mac.programmer
From: danwood@netcom.com (Daniel J Wood)
Subject: Re: Forth on the Mac
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Date: Sat, 9 Jan 1993 20:16:19 GMT

chergr@lure.latrobe.edu.au writes:

>Forth on the Mac includes:
[list deleted]

Also, Bradley Forthware in Mtn View has ForthMacs on the Mac. NOT very Mac-like,
but it's a great forth kernel to start with. I've managed to modify it enough
to produce ".o" files to link into Think projects.

Dan
danwood@netcom.com
From: phils@chaos.cs.brandeis.edu (Phil Shapiro)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Think Ref 2.0
Date: 11 Jan 93 04:29:25 GMT
	<PHILS.93Jan9224010@chaos.cs.brandeis.edu>
	<1993Jan10.105211.527@sics.se> <C0nB2x.HBJ@world.std.com>
	<1993Jan11.010433.24766@bilby.cs.uwa.edu.au>
Organization: Symantec Corp.

>>>>> On Mon, 11 Jan 1993 01:04:33 GMT, Quinn <quinn@cs.uwa.edu.au> said:

>> In article <PHILS.93Jan8135651@chaos.cs.brandeis.edu> I said:
>>
>>The main reason was that supporting arbitrary selections would've
>>required a basic TextEdit engine. For speed, THINK Ref uses a simple
>>imaging model supported by DrawString or DrawText. [...] It was
>>decided that copying all source code text was an adequate solution,
>>given our constraints of memory and speed.

 > How about Nuntius' solution of copying whole lines at a time.  Sure
 > it's not as good as full character based selection but at least the
 > users have some hope of figuring out how it works (and it's a darn
 > sight more convenient too).

Well, if Nuntius does this *and* supports multi-font, multi-styled
text (where lines can have unequal length), embedded PICTs, as well as
scrolling, then I guess we're really missing something. Anyway, I
wouldn't say that it couldn't be done, just that it wasn't worth it.
And besides, we've gotta leave something out for 3.0 :-) !

	-phil
--
   Phil Shapiro                                   Software Engineer
   Language Products Group                     Symantec Corporation
		   Internet: phils@cs.brandeis.edu
From: bernt.budde@udac.uu.se (Bernt Budde)
Newsgroups: comp.sys.mac.programmer
Subject: The code in "Mac. progr. Secrets"
Date: 7 Jan 93 03:20:18 GMT
Followup-To: comp.sys.mac.programmer
Organization: UDAC (Uppsala Univ. Comp. Centre)
NNTP-Posting-Host: macbug.udac.uu.se

I'm writing a hack for my personal fun. Is the code in
"Macintosh Programming Secrets" anywhere on the net?

(Yes, I know I can order a disk, but it's such a hassle
to send money to USA and it takes time)

If I get this finished and it's nice, I'll of course make
it a freeware (source too, if I'm not too embarrased...:-).
Xref: sparky comp.sys.mac.programmer:20594 comp.os.ms-windows.programmer.tools:1855
From: d88-jwa@dront.nada.kth.se (Jon Wtte)
Newsgroups: comp.sys.mac.programmer,comp.os.ms-windows.programmer.tools,comp.windows.ms.programmer
Subject: Re: porting windows app to mac
Keywords: n 									  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Date: 4 Jan 93 11:50:43 GMT
Organization: Royal Institute of Technology, Stockholm, Sweden

In <1993Jan3.221507.17152@plx.com> sailu@plx.com (Sailu Reddy) writes:

>Yeah think of the gull that guy has ! HE INTENDS TO GIVE SOFTWARE AWAY
>FREELY. Giving away the software which is better than most of the so called 
>"professional" software and contributed immenssely to the development
>of CS,  is indeed a crime.

Okay, let's put it this way: I'd be more worried about
the GNU way of doing software becoming the LAW than
the Apple way (beacuse, after all, Apple is only acting
within the present laws)

This whole debate has been worked out 999 times before;
I'll try and stay out of the 1000dth.

-- 
 -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --

 -- I don't fear death, it's dying that scares me.
Newsgroups: comp.sys.mac.programmer
From: sgrenander@NASAMAIL.JPL.NASA.GOV (Sven U. Grenander)
Subject: Re: Duplicate Object in Think C?
Followup-To: comp.sys.mac.programmer
Organization: Jet Propulsion Laboratory
Date: Tue, 5 Jan 1993 23:29:39 GMT

In article <noah-050193094549@noah.apple.com>, noah@apple.com (Noah Price)
wrote:
> 
> In article <1993Jan5.015329.15824@reed.edu>, eric@reed.edu (eric) wrote:
> > 
> > Don't thinkC objects know what class they are, and can't you get this
> > using CObject::GetClassName?  I don't think that you have to override
> > this method, but then I can't recall ever having used it so . . .
> 
> Are you talking about copying objects?  I don't think you need to worry
> about getting the class name.
> 
> The object itself will be copied by
> 
> newObject = anyObject->Copy();
> 
> The reason that I (and Brian Hall, I think) was suggesting you might need a
> subclass is only if your object contains a reference to data that also
> wants to be duplicated.
> 
> For example, if one of your instance variables is a handle, the Copy()
> method will copy the handle (i.e., you'll have another pointer to the same
> master pointer), but NOT the data the handle references.  You have to
> decide for the particular situation if you just want a second handle to the
> same data, or if you want a new copy of the data.
> 
> noah
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> noah@apple.com                                 Macintosh Hardware Design
> ...!{sun,decwrl}!apple!noah   (not the opinions of) Apple Computer, Inc.

Not just handles. Poniters to dynamically allocated arrays would also cause
problems.

-Sven
Newsgroups: comp.sys.mac.programmer
From: mspace@netcom.com (Brian Hall)
Subject: Re: Duplicate Object in Think C?
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Date: Wed, 6 Jan 1993 08:43:30 GMT

noah@apple.com (Noah Price) writes:
>The reason that I (and Brian Hall, I think) was suggesting you might need a
>subclass is only if your object contains a reference to data that also
>wants to be duplicated.

>For example, if one of your instance variables is a handle, the Copy()
>method will copy the handle (i.e., you'll have another pointer to the same
>master pointer), but NOT the data the handle references.  You have to
>decide for the particular situation if you just want a second handle to the
>same data, or if you want a new copy of the data.

You would want to copy the dat itself in case you end up disposing the
object.  If you have two copies of an object (that have a handle as
instance data) then disposing the first object will leave a "dangling
handle" in the second object - the handle will not be NULL, but it won't
be pointing to anything you would want it to!

-- 
 
 \ | /   | Brian Hall                 mspace@netcom.com
 - : -   | Mark/Space Softworks       Applelink: markspace
  /|\    |                            America Online: MarkSpace
 |-+-|   |
/-\|/-\  | Visit me at the Apple SSW and/or Ex Machina booth. Just because.
From: mkelly@mystix.cs.uoregon.edu (Michael A. Kelly)
Newsgroups: comp.sys.mac.programmer
Subject: C.S.M.P. Digest V2 #1 Available
Date: 4 Jan 93 12:19:29 GMT
Article-I.D.: cs.1993Jan4.121929.11662
Followup-To: poster
Organization: University of Oregon Computer and Information Sciences Dept.


C.S.M.P. Digest             Mon, 04 Jan 93       Volume 2 : Issue 1

Today's Topics:

	Accessing MPW 411 from THINK C
	How to store file references/names ?
	Deadman programming - how to reset?
	calling MacTCP from ioCompletion routine
	How can you discover which debugger is installed?
	AppleEvents for Print server 3.0?
	Fixing Apples serial drivers. How???



The Comp.Sys.Mac.Programmer Digest is moderated by Michael A. Kelly.

The digest is a collection of article threads from the internet newsgroup
comp.sys.mac.programmer.  It is designed for people who read c.s.m.p. semi-
regularly and want an archive of the discussions.  If you don't know what a
newsgroup is, you probably don't have access to it.  Ask your systems
administrator(s) for details.  If you don't have access to news, there is
no way that I know of for you to post articles to the group.

Each issue of the digest contains one or more sets of articles (called
threads), with each set corresponding to a 'discussion' of a particular
subject.  The articles are not edited; all articles included in this digest
are in their original posted form (as received by our news server at
cs.uoregon.edu).  Article threads are not added to the digest until the last
article added to the thread is at least one month old (this is to ensure that
the thread is dead before adding it to the digest).  Article threads that
consist of only one message are generally not included in the digest.

The entire digest is available for anonymous ftp from ftp.cs.uoregon.edu
[128.223.8.8] in the directory /pub/mac/csmp-digest.  Be sure to read the
file /pub/mac/csmp-digest/README before downloading any files.  The most
recent issues are available from sumex-aim.stanford.edu [36.44.0.6] in the
directory /info-mac/digest/csmp.  If you don't have ftp capability, the sumex
archive has a mail server; send a message with the text '$MACarch help' (no
quotes) to LISTSERV@ricevm1.rice.edu for more information.

The digest is also available via email.  Just send a note saying that you
want to be on the digest mailing list to mkelly@cs.uoregon.edu, and you will
automatically receive each new issue as it is created.  Sorry, back issues
are not available through the mailing list.

Send administrative mail to mkelly@cs.uoregon.edu.


-- 
_____________________________________________________________________________
Michael A. Kelly                                               Senior Partner
mkelly@cs.uoregon.edu                                      High Risk Ventures
_____________________________________________________________________________
From: cconstantine@galaxy.gov.bc.ca
Newsgroups: comp.sys.mac.programmer
Subject: Re: different font in a listbox?
Date: 6 Jan 93 07:25:28 -0800
Organization: BC Systems Corporation

In article <1993Jan5.200308.14400@kth.se>, d88-jwa@dront.nada.kth.se (Jon Wtte) writes:
> In <C0E41B.1GC.2@cs.cmu.edu> soetji+@G.GP.CS.CMU.EDU (Soetjianto) writes:
> 
>>Is it possible to change the font and its alignment of a listbox?
> 
> Well, on the Mac they're called List Manager Lists, not
> ListBoxes, but Yes. All you have to do is to write your
> own LDEF; that's a very simple task.
> 
> The resource ID of the LDEF should be passed to LNew.
> 

Actually, you don't even need to write your own LDEF.  I made a Help Module in
Pascal for an accounting program I was working on.  I used STR# resources for
the list of topics and TEXT/styl resources for the actual help text.  If you do
a TextFont(Geneva), TextSize(9), TextStyle(Plain), your list will use Geneva
9pt Plain in the list.  You must call these routines BEFORE putting up your
list though, or it won't work.

BTW, I wrote 1 routine that would hand all three calls.  Something like
SetText(str255,integer,str255) or something like that.  You get the idea.


Carl B. Constantine
CCONSTANTINE@galaxy.gov.bc.ca
Newsgroups: comp.sys.mac.programmer
From: neeri@iis.ethz.ch (Matthias Neeracher)
Subject: Re: Proper way to do Self-Modifying code?
Organization: Integrated Systems Laboratory, ETH, Zurich
	<1993Jan05.163138.20910@lloyd.Camex.COM>
Date: Thu, 7 Jan 1993 22:23:29 GMT

In article <1993Jan05.163138.20910@lloyd.Camex.COM>, kent@lloyd.Camex.COM (Kent Borg) writes:
> Yes, trivial, so instead consider my post as follows: How should one
> find one's A5 world from within a sleep queue procedure?

I have never written a sleep queue proc, but wouldn't the following work ?

TYPE TheBigSleep =
   RECORD
      sleepy :        SleepQRec;
      wonderfulWorld: A5WorldPtr; /* Whatever you want */
   END;
...
valium : TheBigSleep;
...
SleepQInstall(@valium);

According to TFM, your sleep routine will be called with a pointer to
valium in A0 that it can cast to the appropriate type. Am I missing anything ?

Matthias

-----
Matthias Neeracher                                      neeri@iis.ethz.ch
  "I wouldn't recommend sex, drugs or insanity for everyone, but
   they've always worked for me." -- Hunter S. Thompson
From: agm@bnr.co.uk (Andrew G. Minter)
Newsgroups: comp.sys.mac.programmer
Subject: C on a Mac: How to get started?
Date: 7 Jan 1993 14:39:35 GMT
Organization: BNR Europe Ltd, London Road, Harlow, England.
Distribution: world
NNTP-Posting-Host: 47.164.64.60

I have a friend who has just bought a PowerBook and wants to start writing
little applications in C.

I'd be very pleased if anyone could give some pointers to what software tools
and documentation he will need to get started (preferably not too expensive).
Right now I guess he will probably want Think C and "Inside Macintosh", but
I'm assume he'll need some kind of resource editor, plus some other stuff.

I'll summarise if it seems appropriate!

Thanks in advance, Andrew
--
+-----------------------------+-----------------------------+
| Andrew G. Minter            | Email: A.G.Minter@bnr.co.uk |
| Principal Research Engineer | Phone: +44 279 403165       |
| BNR Europe Limited          | Fax:   +44 279 451866       |
| London Road, Harlow         | ESN:   742-3165             |
| Essex  CM17 9NA             | Telex: 81151 BNR HW G       |
+-----------------------------+-----------------------------+
Newsgroups: comp.sys.mac.programmer
From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
Subject: Re: protection == !piracy
Organization: Kalamazoo College
Date: Thu, 7 Jan 1993 22:33:16 GMT

sainaney@unixg.ubc.ca (Narayan R. Sainaney) writes:
>
>	The working copy will hold serial numberS (about 150 that I can trace
>directly to you and they would be located at various places in the code,
>resources etc).
>
>	Now the big question: I do come across a copy of the program
>that has been pirated. Being a small compnay with limited finances
>(and lawyer support), fow far can I prosecute(sp?) someone? Would borders
>affect the case (I'm up here in Canada) and to what degree?

While I'm not a lawyer, I imagine prosecution would be expensive and
time-consuming.  Maybe if you rang up the SPA, they could harass the
perpetrators with a few phone calls, but they'd probably also be
unwilling to take it further.  (Unless your name is Gates or Sculley.)

You might consider another form of punishment:  publish the names of
known offenders in subsequent releases of the program.  That is, in your
About box for version 1.0.1, list the people who you know gave away
copies of version 1.0.

Of course, if you do this, explain the whole thing to people when they
buy the program, so there are no surprises.  And, for your sake, be
certain you don't finger anyone incorrectly.


My two cents:  the best anti-piracy technique I've heard of is to
provide a "Save Demo App As..." menu item, that saves a demo version of
the app.  That way, legitimate users can satisfy their friends who ask,
"hey, can I borrow a copy of that program, just to see how it works?"
That's where a lot of (non-game-program) piracy comes from, IMHO.
-- 
 Jamie McCarthy      Internet: k044477@kzoo.edu      AppleLink: j.mccarthy
 "Estimated number of DOS viruses in existence today:  1,500
  Number of Macintosh-based viruses:  Less than 40
  New DOS viruses discovered in summer '92:  More than 100"   - ComputerWorld
Newsgroups: comp.sys.mac.programmer
Subject: Re: Where does BinHex live?
From: seth@physc1.byu.edu
Date: 7 Jan 93 23:35:40 -0700
Distribution: world
Organization: Brigham Young University

> Far better, IMO, is "Stuffit Expander" if you just want to debinhex stuff.
> It knows many formats (binhex,stuffit,compactor, others) & is smart &

The version of Stuffit Expander that I have (1.0.1) doesn't do .hqx files, nor
have I found any way to configure it at all. Is there a newer version than
1.0.1? My version's info window shows a date in September.

Seth Leigh
BYU Physics Dept.

Newsgroups: comp.sys.mac.programmer
From: howard@netcom.com (Howard Berkey)
Subject: Re: GUSI.sit.bin
Organization: Netcom Online Communications Services (408-241-9760 login: guest)
Date: Tue, 12 Jan 1993 05:21:13 GMT

In article <1993Jan12.004136.3142@dtint.uucp> tom@dtint.uucp (Thomas R. Kimpton) writes:
>
>I ftp-ed to nic.switch.ch last week and got GUSI_10.sit.bin.
>Am I correct in assuming that the .bin means it is a
>MacBinary file?  I tried everything I could think of to
>convert this file, but to no avail.  The MacBinary converter
>in StuffIt failed with an eof error.  Has anyone else
>downloaded this and gotten it converted?  Could you tell
>me what you did?
>

This is funny, it ties in to a stupid thread I started last week,
about why binhex is around.  
What you need to do when ftp'ing non-binhexed or uuencoded binary
files is make sure that the ftp transfer mode is set to BINARY.  The
default is (usually) ASCII.  If I remember, you do this by typing
'type binary' or maybe just 'binary'.  I have a .netrc which does all
this for me at most archives so I don't recall which is correct.

.netrc files are a real timesaver if you do a lot of ftp'ing...
they are text files in the following format: (sub your login for mine
below and you get the idea...)

machine ftp.apple.com login anonymous password howard@netcom.com
        macdef init
        type ascii
        cd /dts

machine ftp.funet.fi login anonymous password howard@netcom.com
        macdef init
        type binary
        cd /pub/mac

[...]

Basically when you ftp a site, ftp looks in your .netrc and if it finds
the machine it logs you in automatically, and executes the commands after the
machine line.  Entries must be separated by a blank line.  Permissions
must be set u=rw (i.e. chmod u=rw .netrc).

There is a public .netrc file for mac ftping floating around somewhere
(that's where I got mine) with many many sites in it.  I can't
remember the author otherwise I'd give credit.  In any case, I'll post
an edited version of mine after this post.  It's got wuite a few sites
in it.

-Howard
-- 
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Howard Berkey                                   	   howard@netcom.com
"These check boxes actually function as check boxes." - from a SW spec
... .. ...   ... .. ...   ... .. ...    ... .. ...   ... .. ...   ... .. ...
From: jess@gn.ecn.purdue.edu (Jess M Holle)
Newsgroups: comp.sys.mac.programmer
Subject: MPW Q: Any way to beep at end of build?
Date: 6 Jan 93 18:58:54 GMT
Organization: Purdue University Engineering Computer Network

Is there any way to make the Build... menu item beep when it is
done?  I hacked a beep into the BuildProgram script, but it only
works if the build completes successfully.  I'd like a way to get
a beep when the Build stops, regardless of the outcome.  (Yes, this
is so that I can read news, etc, during compiles).

Jess Holle
Newsgroups: comp.sys.mac.programmer
From: mark@cheers.jsc.nasa.gov (Mark Manning)
Subject: Re: Why the Piracy? Here's why...
Organization: NASA
Date: Fri, 8 Jan 1993 16:02:37 GMT

To put a bit of frivolous nonsense into this (and to lighten
the mood a bit?), I must mention that, according to the new
laws, it is better now to shoplift software than it is to
pirate the stuff.  Shoplifting is (I think) a misdemeanor
while software piracy is now a federal offense.

We now return you to the argument in progress.

;)
From: cshotton@oac.hsc.uth.tmc.edu (Chuck Shotton)
Newsgroups: comp.sys.mac.programmer
Subject: How does 16 bit color work?
Date: 11 Jan 1993 19:48:50 GMT
Followup-To: comp.sys.mac.programmer
Organization: Academic Computing

I understand that 8 bit color uses a look-up table to index a 8-bit pixel
value into a RGB value with 16 bits for each R, G, and B component. This
allows palette animation, etc. 24 bit color uses the 24 bit pixel value to
derive the "true" color, correct? This precludes palette animation, etc.

How is 16 bit color implemented?

--_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
Chuck Shotton                      |    
Ass't Director, Academic Computing |       "This space for rent."
UT Health Science Center Houston   |  
cshotton@oac.hsc.uth.tmc.edu       |         
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
From: mssmith@afterlife.ncsc.mil (M. Scott Smith)
Newsgroups: comp.sys.mac.programmer
Subject: Think C bug? [sprintf]
Date: 7 Jan 93 11:36:24 GMT
Organization: The Great Beyond

Does anyone know of any bugs in the sprintf() function of Think C v5.x?

I don't have time to elaborate, but I've found that it doesn't do what
it's supposed to.  It seems more than three arguments cause it to bomb.

It should be identical to printf, except the first parameter passed is
a string to "print to."  But this doesn't seem to work in Think C.

If this is a bug, are there any work-arounds?

Thanks,

M. Scott Smith
  (mssmith@afterlife.ncsc.mil)
From: stern@comb1.comb.umd.edu (Brian Stern; COMB)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Q: Source for BinHex?
Date: 11 Jan 1993 17:53 EST
Organization: University of Maryland, Center of Marine Biotechnology
Distribution: world
NNTP-Posting-Host: comb1.comb.umd.edu
Summary: Binhex reference
News-Software: VAX/VMS VNEWS 1.41    

In article <D2150096.ndoljc@sproul.sproul.com>, Sproul@sproul.sproul.com (Mark Sproul) writes...
>Does anyone know were I can get source to BinHex, preferably in C.
>If not the source, how about the formating so I can write it.
>I want to include it in a comm package I am writting.
> 
There is a several page description of the Binhex 4.0 standard on
sumex-aim.stanford.edu/info-mac/tech/binhex-40-specs.txt


Brian Stern
Stern@mbimail.umd.edu

------------------------------------------------------------------------
This space intentionally left blank
-------------------------------------------------------------------------

Newsgroups: comp.sys.mac.programmer,comp.os.ms-windows.programmer.tools,comp.windows.ms.programmer