Article View: comp.sys.amiga.tech
Article #10111Re: Shared IDCMP Ports--Proposal
From: Leo 'Bols Ewhac' Schwab
Date: Tue, 25 Oct 1988 09:14
Date: Tue, 25 Oct 1988 09:14
54 lines
2849 bytes
2849 bytes
In article <3051@amiga.UUCP> jimm@cloyd.UUCP (Jim Mackraz) writes:
>In article <7439@well.UUCP> ewhac@well.UUCP (Leo 'Bols Ewhac' Schwab) writes:
>) Since all programs would be doing this, and all programs obeyed the
>)same exact commands,
>
>Freeze it here, Eddie. I am all for common command sets, but we don't have
>them.
I know. It was *merely* an idea, that's all. Nobody I told ever
seemed to like it, so I guess it must have been a pretty lousy one.
[ Actually, we do have a form of common command set: The commands
sent to Exec devices. ]
>) I usually put it in for debugging reasons, and then never bother to
>)take it out since it's "never" going to get called anyway. It's helped *me*
>)out on a few occasions. And my die() routines are scientifically designed
>)to kill the program coherently, leaving you with a useable machine.
>)So there. :-)
>
>Leo Schwab, Software Assassin. I like it it. It has a good beat and you
>can dance to it.
>
This is something we'll have to talk about in person, since it
appears to be an important point, but let me attempt to justify the
maneuver:
When you open a Window, you specify to Intuition what IDCMP events
you wish to receive. I interpret that to mean that I will receive *only*
those events that I asked for. If I receive something I didn't ask for, I
want to know about it. Hence, the die() directive.
If it helps you sleep better, I will make sure there are no such
constructs in Onion.
>What I put in my default case is:
>
> default:
> serout = fopen( "ser:", "w" );
> fprintf( serout, "atdt14085553303\n");
> fprintf( serout, "guru\nbloodlust\n");
> fprintf( serout, "mail jimm\n");
> fprintf( serout, "Someone sent me an unrecognized IDCMP message!!\n.\n");
> fprintf( serout, "logout\n");
> fprintf( serout, "ath\n");
> Alert( AN_DOSNOMEMORY );
>
Ah. You've read the source to Robotroff, I see..... :-)
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
Leo L. Schwab -- The Guy in The Cape INET: well!ewhac@ucbvax.Berkeley.EDU
\_ -_ Recumbent Bikes: UUCP: pacbell > !{well,unicom}!ewhac
O----^o The Only Way To Fly. hplabs / (pronounced "AE-wack")
"Work FOR? I don't work FOR anybody! I'm just having fun." -- The Doctor
Technical Details
Message-ID:
<7462@well.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!rutgers!apple!well!ewhacReferences:
<3031@amiga.UUCP> <7412@well.UUCP> <3037@amiga.UUCP> <7439@well.UUCP> <3051@amiga.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!rutgers!apple!well!ewhac From: ewhac@well.UUCP (Leo 'Bols Ewhac' Schwab) Newsgroups: comp.sys.amiga.tech Subject: Re: Shared IDCMP Ports--Proposal Summary: Coding style... Message-ID: <7462@well.UUCP> Date: 25 Oct 88 09:14:29 GMT References: <3031@amiga.UUCP> <7412@well.UUCP> <3037@amiga.UUCP> <7439@well.UUCP> <3051@amiga.UUCP> Reply-To: ewhac@well.UUCP (Leo 'Bols Ewhac' Schwab) Organization: Nothing to do with Pixar. Lines: 54 Quote: "Men, take Binkley's head." -- Coach Bloom