This is an archive of CompuServe forum messages from 1985 to 1995, as saved in transcripts by John Foust.
Search Results (82 messages)
yup, that is an error all right. I can see what is going wrong. I'll pass your problem along to Walter & co. Yea, get another compiler and use it as a LINT checker. Zortech does not report as many errors as it should, and it is nice to make…
The WATCH program that comes with JPI C's TechKit is just what you need. It can diagnose DOS calls and write them to disk, and is settable as to which calls is reports. I've used it to figure out what was wrong with a program that gave me insufficiant error…
why not have a subtopic for "late program listings" so the questions don't get posted in the general topic? THe regulars can switch out that topic. Or better yet, include a note in the Welcome screen, so people who log in just to ask about listings will know the current…
hey, even with the old clunky COMMAND.COM, can't you put an argument in quotes to prevent interpretation of it? –John
The DRM is the AT&T 2.0 spec. It is well worth getting ($20 I think). I don't know the part number, but if you call AT&T you can find it. Also get the "essential readings". All that comes with C++ compilers, except for Zortech. The ARM is the "annotated reference…
You can use '|' on a 4DOS command line, if escaped by a ^X first. BTW, 4DOS has a new version out. It has SWITCHAR support, and is selectable with the SETDOS command instead of goofy interrupts. It also allows a forward slash as a dir seperator in most places.…
Yea, you're right. I had been thinking about the line in the DRM that says, "If a function mentioned as a friend has not been declared its nam is entered in the same scope as the name of the class containing the friend declaration." which says nothing about only allowing…
yup, that is a compiler bug. Looks like the 'friend' declaration only sticks if the function already exists, or the declaration of trans in Matrix somehow un-friends it. Wierd, but true. I'll forward this message to Walter. –John
really? I remember when it was rather cheap. I guess he upped the price. I remember hearing that there was almost no price resistance in that product catagory.
for TSR stuff, get TesSeRact from CLMFOR. Saw a review on YACC stuff for PC's a while back, but things have changed since. As I recall, QParser is not longer available and the other one (I forget the brand) is about the same. LALR though is updated and hotter than…
Yea, ANSI drafts ahve been a wonderful boost to C programmers. My toolbox compiles under many brands, with only slight hanges in 1 header file. –John
I guess we're coming from two different worlds. I'm working on defining the language, and have studied the language long before I could actually compile it. I see the _bugs_ in the compiler then when I try to use them. So your book is specific to Zortech 1.06's implementation of…
yea, it is not easy to follow even if you do know assembly. But once you get the hang of it, you learn the kind of code the compiler generates. I used to debug Zortech with Periscope. I debugged the compiler as much as my own code! Good luck. –John
Which Cfront are you teaching? Your readers will have 2.1, a bug-fix version, pretty soon. So if you teach the bugs the compiler will not match any more. I prefer to say what is right, and then discuss various compiler's beefs with it. Such a feature is to be avoided…
The hidden parameter is used for normal functions. The static area (no hidden parameter) is used for variadic functions. No temps? You've got to put intermediate results _somewhere_. Consider c=a+b+c; the result from a+b has to be stored somewhere (won't fit in a register!) and that object then used as…
I keep wanting to review version control systems so I can use that line in an article. –John
The _TEMxx is the hidden parameter for the answer area. The caller tells the function where to put the result. Variadic functions will have a static buffer in them and the function returns a pointer to that buffer, which contains the result. The caller than immediatly copies it back out…
the think I was looking for is code to add a disk drive to a microcontroller application. The 68HC11 is a primitive 8-bit computer. But the whole thing is on one chip, and it is cheap. –John
There is nothing special about using a member pointer in another class. A parameter is a parameter, a variable is a variable. Zortech does not yet support member pointers. They decided to release it before it was finished, figuring not many would notice. It will be available some day. The…
sorry, now I remember a thread dealing with navigational problems in the DRM. Just replace my previous detailed message with "RTFM". Just kidding… I'll remember that you have a manual, and just point you in the right direction. As for this question in particular, I just looked up "enumeration" in…
that is a big difference I expect in a C++ library. Just have _one_ function name! float abs (float&); double abs (double&); int abs (int); long abs (long); void abs (unsigned); //to trigger a compiler error etc. –John
Enums are distinct types. They are distinct from each other, and distinct from ints. You can overload functions based on different enum typed parameters. You can implicitly convert an enumeration constant to an int, but not vice-versa. The type of an enumeration is the enumeration type. Order a reference manual…
yes, working in C does get tedious. I can't wait to get this finished and jump into my C++ book. Moving back and forth bothers me a little too, since they are so similar. I found that translating some of my C stuff to C++ was trivial. I had something…
I'm not in tune with the pholosophies either. Would rather make money with my programming. So it is not the code itself that bothers you, just the fact that you could not possibly use it for anything? –John
I don't remember the reference. When I do recal recently was looking for someone to write some functions for a 68HC11 application to manage a drive controller. PC compatable format would be ideal, or have a utility on the PC to read such disks. I might have mentioned the possibility…
last week I got the official adgenda for the meeting. Also included was the report from the goals work group. I'm sure all the members have gotten it by now. Have not looked at the GNU code really. Just used it as a compiler breaker. What have your principles got…
True, having the language directly support the concepts is a _huge_ benifit. But once you start OOPing, it affects everything you do. That is why you should know a viriety of languages– it helps you think better in _any_ language. Ever notice how many C++ programmers _don't_ program use OOP?…
Have you gotten the adjenda yet? The idea thus far (in the goals workgroup) is to standardize the core language in a draft asap, and then work on libraries and language extensions. That will give compiler writers something to work with the fastest. I think (personally) that a standard lib…
Reminds me of a joke: Hear about the insane object oriented programmer? He had madness in his methods. I like the bumber sticker: C++ Programmers do it with class. A while back I was working on my editor, in C. It is possible to be object oriented in any language,…
Poximity is my far the best. Costs $15,000 for the source, plus a royalty on each item sold. If you really need spell checking, it is worth it. I saw some other spell checkers, but don't remember any names. Must be around somewhere. –John
I remember seeing a table somewhere that has an entry for each drive letter, and an explaination of it. Where could that have been?? –John
One way C++ code is more reusable is that you can alter it without modifying the original source files. Makes it easy to take something and incorperate it with changes, and you don't have multiple almost-same code to maintain. Also, safty features so if code is being used by someone…
In the new version, he got a co-author. I never had any trouble with the C++ Reference Manual. I guess I'm used to textbook style. –John
If it is used in such a context, it _will_ have storage defined. The compiler has the option of not generating storage only if it is never needed for anything.
Zortech 2.06 is useable. Good luck. Never heard of Computer Language? Well, you'll just have to subscribe to see what you've been missing! –John
As I understand it, your problem is linking with the ASM stuff. WHen prototyping the asm functions, use the "C" qualifier. extern "C" assembly_function (int, int); for example. Just stick in the "C" on all the prototypes for the ASM calls. Alternativly, change the name of the ASM function to…
Think we could bottle it? Bjarne said he likes BIX better than the newsgroups, because we really get things done there. So why does the C++ report show "best of comp.lang.c++" insted of "best of BIX" ?
#24156-
Day of the Week
Message #24173
int day_of_week (int MM, int DD, int YY) { static int mo[]= {0,3,3,6,1,4,6,2,5,0,3,5}; int total= (YY + YY/4 + mo[MM] + DD); if (YY/4 == 0 && MM < 3) //no leap yet total–; return total % 7; } This works on all dates in the 20th century, and if…
#24076-
#C++ Question
Message #24096
Bjarne mentioned something interesting at dinner one evening… Since the number of C++ programmers is doubling every 8 months, that means that the average experience of a C++ programmer is 4 months.
that is a lousy limitation. You think they would have learned something from Unix's design.
There are a couple advertised in current issues of CLM and DDJ. I gave AutoFlowC a spin, and it works OK. –John
check out NANSI.SYS. SOurce code included for a console device driver.
trace through the Load Program service in DOS and see what is going on. Net3 must patch it somehow or it would in fact look just like any other open. Perhaps it is trivial– the hook notices that LoadProgram has been called. Perhaps not. But you can easily find out…
since you can hold off, check out the upcoming May issue of CLM. It is the annual C issue, and will contain an all-out review of 12 compilers for DOS. –John
See Summer's C Gazette. I have a very short program to do just that (just makes a single BIOS call) but not on this machine. –John
shorted
Message #23713
I noticed last night that in the Feb. issue that "Swaine's Flames" starts on page 160. However, the magazine only has 152 pages. Can you send me an update? –John
P.S. there is a loader in Wendon's Operation System Toolbox. It is easier than I thought. –John
I was just thinking of making a program that copied EXE-only programs 🙂 It could trick the network into thinking it was a loader, and grabbing the bits instead of processing them. –John
re VID using multi-language: CodeView has done that for years. So has Periscope, but it doen't mean as much. Personal bias? Yes, I hate them all. 🙂 Watcom 7.0 was the first one I saw that claimed 100% compliance. Then came Lattice. The hard part is the libraries– LOCALE stuff…
Page 1 of 2