HDTenEightyP/NetNews huggingface dataset:
From: jfriedl@TUBBY.MACH.CS.CMU.EDU (Jeffrey Friedl)
Subject: Re: A simple test for perl 5.0
Keywords: bug
Reply-To: jfriedl@cs.cmu.edu
Organization: Omron Corporation / Carnegie Mellon
Date: Fri, 29 Jan 1993 04:26:01 GMT

ram@eiffel.com (Raphael Manfredi) writes:
|> I think someone else reported a similar problem a long time ago. Everyone
|> had laughed at him (myself included, in a private mail), telling him to get
|> rid of the infinite recursion... However, this seems to be a serious problem.

That was me.  I had posted the problem in such a way that it looked as if
I didn't understand the infinite recursion issue, so it probably didn't
get a lot of attention (and I was sort of immature in my blasting people for
telling me about infinite recursion, as if I should expect them to know more
about me than just what I posted [sorry Raphael!], so that didn't help).

But one nice response was from one L. Wall who noted that it was a known
problem that was (if I remember correctly... it was a while ago) rather
embedded into p4, but wouldn't be an issue in V since he was rewriting
the offending code.

sub foo { print "just another perl ", &foo, "\n"; }; &foo;

	*jeff*
-------------------------------------------------------------------------
Jeffrey Eric Francis Friedl   jfriedl@cs.cmu.edu -or- jfriedl@omron.co.jp
Omron Corporation, Section RZC, Shimokaiinji, Nagaokakyo Kyoto 617, Japan
Visiting researcher to the Mach Project, Carnegie Mellon University
Newsgroups: comp.lang.perl
From: essbaum@rchland.vnet.ibm.com (Alexander Essbaum)
Subject: perl-mode.el and indenting
Date: Tue, 26 Jan 1993 16:43:52 GMT
Disclaimer: This posting represents the poster's views, not necessarily those of IBM
Organization: IBM Rochester

i recently (coupla weeks actually) got perl-mode.el from someone via email.
what i got was uuencoded, tarred, and compressed.  unfortunately, our weenie
mailer munged the mail message a bit and i've had to manually edit the
uuencoded stuff.  i still get "the file is too short" when i uudecode, but
uncompress and tar don't complain but i'm still not sure if i've got a good
perl-mode.el.

i get:

% /bin/ls -l perl-mode.el
-rw-r--r--   1 essbaum  system     25802 Feb 06 1992  perl-mode.el
% /bin/cksum perl-mode.el
2895779942 25802 perl-mode.el

does this look right?


the reason i'm wondering is because the indenting i get in perl-mode is
sometimes very weird.  for example:

for ($counter = 0;$counter < $#num;$counter++) {
        $_ = $num[$counter];
        if (/ABC ${endname}DEF${number}/i) { $in = 1; }
        elsif ($in == 1) {
        if (/^\s*ABC /i) { last; }
        elsif (/XYZ\s*MOOF/i) {
                $num[$counter-1] =~ /(^.*\s+)(\w+)(OOF\s*)(\s*)(\-*\d+)(.*$)/i;
                $level = $2;
                $w = &check ($level);
Newsgroups: comp.lang.perl
From: peter@micromuse.co.uk (Peter Galbavy)
Newsgroups: comp.lang.perl
Subject: FAQ ? High level menus etc in perl ? Please !
Date: 25 Jan 93 16:40:16 GMT
Reply-To: peter@micromuse.co.uk
Organization: MicroMuse Ltd, London

Are there any packages/libraries out there that implement a high-ish level
menuing ?

Ideally, I would like something simple to use, and yet powerful. Sigh, only the
usual wish list :-)

Also, something like the tick boxes in SunOS suninstall/add_client etc, and
maybe some form filling.

Hell - I don't know what I want: I am more likely to write the code to suit
the menuing environment.

Thanks all,
---
Peter Galbavy
Tech Support, Micromuse Ltd
Phone: +44 71 352 7774		E-Mail: P.Galbavy@micromuse.co.uk
Xref: sparky comp.lang.c++:19764 comp.object:5002
From: fjh@munta.cs.mu.OZ.AU (Fergus James HENDERSON)
Subject: Re: Why is C++ not considered a true OOL?
Organization: Computer Science, University of Melbourne, Australia
Date: Tue, 26 Jan 1993 12:40:15 GMT

ian@syacus.acus.oz.au (Ian Joyner) writes, in reply to an article by
	maxtal@extro.ucc.su.OZ.AU (John MAX Skaller):

>John's going to love me for this, but arguments defending C++, based
>on ADTs and mixed idiom programming are as fatuous as the engineering
>compromise argument, which was effectively dispelled last year.

It was?  On this forum?
(Is there some problem with my news-feed? ;-)

-- 
Fergus Henderson             fjh@munta.cs.mu.OZ.AU      
This .signature virus is a self-referential statement that is true - but 
you will only be able to consistently believe it if you copy it to your own
.signature file!
Xref: sparky comp.lang.c++:19772 comp.object:5007
From: kanze@us-es.sel.de (James Kanze)
Subject: Re: Overloading Operators
Organization: SEL
	<1993Jan25.174819.18445@wam.umd.edu>
Date: 26 Jan 93 17:53:02

In article <1993Jan25.174819.18445@wam.umd.edu> krc@wam.umd.edu (Kevin
R. Coombes) writes:

|> In article <2215@celia.UUCP> celia!gray@usc.edu (Steve Gray) writes:
|> >A const reference differs in a very important way from a plain reference:
|> >it clearly states that the member function has no side effects.  One of
|> >my (and others at R&H's) primary objections to using references is that
|> >it means member functions can have un-obvious side effects on their parameters. 
|> >i.e. they can change the contents of a variable which was passed by value (as 
|> >far as the caller's syntax is concerned) and therefor should not be changed by 
|> >the member function.
|> >
|> >We have basically outlawed non-const references as being too dangerous.  I
|> >personally would have preferred that they not even be allowed in the language,
|> >but I can understand why (given the syntax of the language) they are allowed.

|> Have you also outlawed pointers (to non-const objects) as parameters?

There is a very big difference between using a non-const reference and
a non-const pointer as a parameter.  In the case of the reference, the
*only* place where it is documented that the function might change the
parameter is in the function prototype, which is often quite far from
where the function is being used.  When the parameter is a pointer,
however, the address of the parameter must be taken explicitely when
the function is called, so someone reading the program can see
immediately what the risks are.
--
James Kanze                             email: kanze@us-es.sel.de
GABI Software, Sarl., 8 rue du Faisan, F-67000 Strasbourg, France
Conseils en informatique industrielle --
                   -- Beratung in industrieller Datenverarbeitung
Newsgroups: comp.lang.c++
From: cywong@microsoft.com (Chek Yoon Wong)
Subject: Re: C++ HyperText Classes
Date: 28 Jan 93 03:25:01 GMT
Organization: Microsoft Corp.
Distribution: usa

haven't seen too many of these around.
there's an ad in feb 1993 MSJ - object-Menu 2.0 which says something like
"... justified page display with embedded icons and hypertext primitives".

chek yoon
Newsgroups: comp.lang.c++
From: mcgrant@rascals.stanford.edu (Michael C. Grant)
Subject: Re: Is (p) instead of (p!=NULL) portable? 
Organization: Information Systems Laboratory, Stanford University
Date: 25 Jan 93 11:03:32

In article <1993Jan25.125627.29030@ugle.unit.no>
robert@alkymi.unit.no (Robert Schmidt) writes:

   In PC C's, the NULL pointer is defined with a bit pattern of all zero's,
   and the constructs 
         if (p)
   and
         if (!p)
   checks for NULL and non-NULL respectively.  Is this portable to *all*
   platforms?

Yes. By definition, 'if (p)', if p is a pointer, tests to see if p is equal
to the null pointer, and 'if (!p)' tests to see if it is not.

Also, by definition, 'p = 0' sets p to the null pointer, even if the
internal representation of the null pointer is not all zeros for some reason.

Mike

--
"Long hair, short hair--what's the difference once the head's blowed off?" (?)
Newsgroups: comp.lang.c++
From: iperrigo@csr.UVic.CA (Ian Perrigo)
Subject: re: polymorphism
Reply-To: iperrigo@csr.UVic.CA (Ian Perrigo)
Organization: University of Victoria
Date: Tue, 26 Jan 93 22:43:59 GMT

In article <16JAN199317094204@trentu.ca>, ayounes@trentu.ca (Amro Younes, Trent University, C.C. #314, Peterborough, ON, Canada K9J 7B8. (705) 749-0391) writes:
>Hi there,
>I recently joined your group to learn more about C++.  Currently I am 
>preparing for a presentation of C++.  Before I venture into the language I 
>want to introduce the participants to what object oriented languages are 
>all about.  Personally OOP and C++ is a completely new concept to me.
>
>I haven't been able to find a book that has a decent definition of what 
>POLYMORPHISM is.  If any of you have a definition of what POLOYMORPHISM is, 
>could you please forward it to me via my e-mail address 
>AYOUNES@TRENTU.CA
>
>I really appreciate your time.  Some of the discussions about "C/C++ 
>Correctness (was: Re: C/C++ Speed)" has helped me tremendously in my 
>evaluation of C++.
>
>Thank you,
>
>Amro Younes

Hey Amro, I won't give you a "definition" as such, but here's a few words which hopefully will clear things up for you. In OO terms, polymorphism denotes the capability of different objects to respond to the same message. For example, we can send the message DRAW to a Circle object and it will draw itself as a Circle. We can send DRAW to a Rectangle object and it will draw itslef as a rectangle. Note I haven't said anything about what language we're talking about, polymorphism is a concept that is implemen


ted differently in different languages. Lets take C++ as an example. A message send is really a method call in C++ (or a member function invocation in C++'s (ahem) unique notation). We would send the message DRAW to a an instance of the Circle class (an object), like so:

aCircle.draw();

Ok, so far, pretty trivial. Things get interesting when we add inheritance. Lets say we have an inhertiance heirarchy as such:

class Rectangle {
  private:
	int length, width;
  public:
	virtual void draw();	// draw myself
};

class Square : public Rectangle {
  private:
	int width;
  public:
	virtual void draw();  	// draw myself
}

Here we have a Square inheriting from a Rectangle. We can have a pointer to the
base class (super class) Rectangle, and we can store either a Rectangle object OR a Square object in that pointer. eg:

Rectangle* rp1;
Rectangle* rp2;

rp1 = new Rectangle;  
rp2 = new Square;      // note this, a Rectangle pointer containing a Square.

Now we can ask the Square to draw itself:

rp2->draw();

and the correct method (Square.draw) is invoked. We say the Square IS A Rectangle, and the Square's draw method overrides the superclass's method (Rectangle.draw). For the sake of brevity I'm glossing over a few things, but hopefully the examples provided give you a better understanding of polymorphism.

Ian.
From: dcc@dcs.ed.ac.uk (David Crooke)
Newsgroups: comp.lang.c++
Subject: C++ grammars
Date: 25 Jan 93 17:36:34 GMT
Organization: Department of Computer Science, University of Edinburgh

Does anyone know where I can obtain YACC/LEX stuff for C++?

Thanks
Dave
-- 
------------------------------------------------------------------------------
David Crooke, Department of Computer Science, University of Edinburgh
Janet dcc@ed.dcs  :  Internet dcc@dcs.ed.ac.uk  :  IP talk dcc@129.215.160.2
Home: 22a Montgomery St., Edinburgh, SCOTLAND EH7 5JS.  Tel: 031 556 0265
Work: JCMB Rm 3310, King's Bldgs, W Mains Rd., Edinburgh EH9 3JZ. 031 650 6013
Xref: sparky comp.lang.c++:19654 comp.lang.c:20003
Date: Thursday, 21 January 1993 00:33:19 EST
X-Mailer: TMail version 1.14R
From: "Tim Triemstra" <empath@ais.org>
Organization: Empath Software
Subject: Re: Graphics
Newsgroups: comp.lang.c++,comp.lang.c
Distribution: world

In <9302114.20944@mulga.cs.mu.OZ.AU>, carl@montebello.ecom.unimelb.EDU.AU (Carl Brewer)  wrote:
   >>I what to do some graphical programming and I want to get some comments on a 
   >>couple of things. I want to you high quality graphics VGA or SVGA.
   >>What is best to use for portabilty between unix and ibm compatablies?
   >
   >write 2 different programmes ... it's not possible ...
   >
   >>I have use Xview for but I believe this is exclusive to X windows.
   >>What is exactly is motiff?
   >
   >unfortunatly it is popular ...
   >
   >>I have used Devguide which quote skelton code for GUI's is there ay thing like 
   >>aviable as sharewhere?
   >>What did the best way to create motion?
   >
   >get a book on graphics in C ....

That was a pretty harsh response there guy.  An answer to the original 
question is :  it is damn tough to do, or even more expensive to buy.  
However, it is possible.

Your biggest problem will be, even if you can get a portable enough graphics
library, is getting a good C/C++ compiler to run the same main code under
DOS as UNIX etc...  However, I'd look into some of the GUI toolkits, unless
optimized speed for animation and such is required.  In which case, you
kinda are screwed into doing it yourself.  Unfortunately, the rule of thumb
is that if it is portable, it must be slow enough to pick up and move.

You may want to try a program called StarView.  It is an expensive GUI tool-
kit for many platforms, although I believe it is in C++ (could be wrong.)
It may also not support 256color graphicsm but I do know it works under
DOS, Windows and UNIX (plus a couple other platforms specific to UNIX.)

Good luck and read alot of Dr. Dobbs Journal advertisement pages.

Tim.

-------------------------------------------------------
| When the end comes, there will be two men standing: |
|   Me, and the guy I gotta kill.   - Gosh I'm EVIL   |
------ Tim Triemstra ------------- empath@ais.org -----
From: njs@planet.bt.co.uk (N.Sowatskey(nonNIS))
Newsgroups: comp.lang.c++
Subject: static chars and 2.0 v 2.1 cfront
Keywords: static chars in 2.1 cfront
Date: 27 Jan 93 09:28:43 GMT
Organization: DNM42, BT Labs, Martlesham Heath, Ipswich, UK.
Originator: njs@andromeda


With Sun's 2.0 cfront I use the following in a header file to define a text 
string which is used in a variety of places:

static char someString [] = "Some Text";

Which never seemed to worry 2.0 cfront.  With 2.1 cfront from CenterLine, however I get the following message:

warning:  ::someString defined but not used

Anyone know what has changed with the language requirements, and what I should do to get rid of the warning?

Ta

Nathan
Newsgroups: comp.lang.c++
From: martinher@urvax.urich.edu
Subject: Sedgwick's Algorythms in C++
Reply-To: martinher@urvax.urich.edu
Organization: University of Richmond
Date: Fri, 29 Jan 1993 04:53:08 GMT

Is the source code for this book on the net publicly.   Good book,
but I hate typing.

Martinher@urvax.urich.edu
Newsgroups: comp.lang.c++
From: kahn@Csli.Stanford.EDU (Ken Kahn)
Subject: Re: Help. DOS from TCWIN??
Organization: Stanford University CSLI
Date: Thu, 28 Jan 1993 16:49:38 GMT

I too wish that I could develop DOS applications under Borland's Windows based
IDE.  I called Borland Tech Support and sent messages on the appropriate
Borland CompuServe Forum.  Essentially they said that many have requested such
a feature (maybe you should add yourself to their list) but currently there is
no way.  They also suggested that I might develop the application as a
Windows application and then rebuild it as a DOS one later.  Good advice
except that I'm doing graphics in DOS and it doesn't work for me.

 -ken kahn
From: njs@planet.bt.co.uk (Non NIS Account)
Newsgroups: comp.lang.c++
Subject: Re: Help with the linking of C and C++ files.
Keywords: C++ object C link
Date: 26 Jan 93 15:05:02 GMT
Organization: DNM42, BT Labs, Martlesham Heath, Ipswich, UK.
Originator: njs@andromeda


In article <1993Jan22.053408.14225@gmuvax2.gmu.edu>, mbenson@gmuvax2.gmu.edu (Michael Benson) writes:
|> I need some help.
|> 
|> I have a piece of code which I know compiles correctly into an object
|> file.  The code is in the Microsoft C language.  It has a header file
|> that properally defines the prototypes.  
|> 
|> I include the header  file in a new program that is written in Borland
|> C++ (version 3.1).  It compiles fine, but fails to link.  It gives the
|> error "undefined symbol xxxxx in module xxx.cpp"  I know that for some
|> reason the linker doesn't want to recognize the code in the c routine.
|> I have tried (maybe naively) to use extern "C" with the header file, but
|> that failed. 

That should work.  What one normally expects to see is something like:

extern "C"
{ int function ( args );
}
In the header file of the c++ using the c code.  The c code is compiled seperately as c code and then linked as a c library.  If it is kosher ansi c though it should compile as c++ code so you should not have a problem if you just compile it as c++ - the linker won't care then.

Nathan
Newsgroups: comp.lang.c++
From: steve@taumet.com (Steve Clamage)
Subject: Re: Friend ..Overload Assignment opertr ..
Organization: TauMetric Corporation
Date: Sat, 23 Jan 1993 20:04:32 GMT

rks9954@usl.edu (Srinivasa Rao K) writes:


>       I am writing a "string"  class which i should be able to use like

>       string str1;
>       str1 = "Hello world" ;

>       But We canot use a friend to overload the assignment oprator.

A String class will usually contain pointers, and so should have
a user-defined assignment operator (which must be a member function,
as you note) and copy constructor.  If not, you will be vary likely to
have bizarre program crashes.  See the book "Effective C++" by Scott
Meyers for a detailed discussion.

If you add a String constructor which takes a const char* parameter,
you don't have to do anything else.  It is hard to imagine a String
class without such a constructor.  Example:

	class String {
	public:
	    String();			// default constructor (optional)
	    String(const char*);
	    String(const String&);	// copy constructor
	    String& operator=(const String &); // assignment operator
	    ...
	};

	String s;
	s = "Hello";

The string "Hello" will automatically be converted to a String by the
constructor, then assigned via the assigment operator.  The code is
evaluated as if you had written
	s.operator=( String("Hello") );

The copy constructor is not relevent for this example, but you should
have one anyway.
-- 

Steve Clamage, TauMetric Corp, steve@taumet.com
Xref: sparky comp.lang.c++:20010 comp.windows.open-look:5178 comp.windows.x.motif:8884
From: nfj@csd.cri.dk (Niels Flensted-Jensen)
Newsgroups: comp.lang.c++,comp.windows.open-look,comp.windows.x.motif
Subject: Experience with ParcPlace products?
Date: 27 Jan 93 15:01:04 GMT
Organization: Computer Resources International A/S

Having attended a presentation of products from ParcPlace Systems,

	Object Interface, ObjectBuilder, and Objectworks rel.3

all for C++, I am interested in hearing from people with experience 
using them.  To me they seemed impressive enough.

Reply to me and I will post a summary if applicable.

Thanks,

Niels Flensted-Jensen
Newsgroups: comp.lang.c++
From: cbrooks@afit.af.mil (Christopher L Brooks)
Subject: Re: Need help justifying C++ over Ada
Organization: Air Force Institute of Technology
Date: Thu, 21 Jan 1993 13:04:27 GMT

davidk@mcil.comm.mot.com (David Kramer) writes:

>In article <GALLINAT.93Jan18105916@dana.sono.uucp>, gallinat@sono.uucp (Douglas &) writes:

>...there are some practical reasons that in some cases
>might be very important:
> - C++ compilers and tools are much more readily available and cheaper.

I agree with you here - they're usually much faster as well.

> - It is a great deal easier to find C++ programmers.

Granted...

> - With C++ you can easily plug in already existing C code - including
>   #include files.

I'm not sure whether your argument here is re-use/modification or just
interfacing.  We've never had any problems here talking to C or C++
from Ada - in fact, we do it all the time.  We've always found it
easiest to make the Ada program the "main" program however.

Just a few comments...

>-- 
>[  David Kramer                       |  INTERNET: davidk@mcil.comm.mot.com  ]
>[ Motorola Communications Israel Ltd. |  Phone (972-3) 565-8638 Fax 565-8754 ]


--Chris Brooks
--cbrooks@afit.af.mil
Newsgroups: comp.lang.c++
From: f43703a@nucc.cc.nagoya-u.ac.jp (SUPRATIC GUPTA)
Subject: Clearing screen from the C++ program/ Please help
Organization: Nagoya University Computation Center, Nagoya, Japan.
Date: Wed, 27 Jan 1993 08:34:56 GMT


I am working on a Sun Spark Station. I am using C++ simple program. I
am trying to develop a simple interactive system.  I am at present
using the premitive cout and cin for input and out put.

It is becoming very clumsy affair.

Is it possibe to clear screen from C++ language?

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

This not so important. I am seeing picture system comand by running 
"xload"  This pictures are Giff pictures read from Scanner.  But
for clarification I want to modify the pictures. Say add a Arrow mark
showing the point of interest. Or mark the picture. 

Is there any easy way of doing it? I tried IDRAW. It reads only Tiff
files. More over Xload cannot read them. Even xv cannot read them.


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Please help. About the first problem, I need your help very urgently.
If you have any other mathod, please also let me know.


I don't read this group. Please answer me personally.

--
With regards
 
SUPRATIC GUPTA
From: pauln@loopkill.EBay.Sun.COM (Paul Nguyen)
Newsgroups: comp.lang.c++
Subject: Re: Clashes between <stdarg.h> and <varargs.h>
Date: 27 Jan 1993 18:33:27 GMT
Organization: Sun Microsystems, Inc.
Distribution: world
Reply-To: pauln@loopkill.EBay.Sun.COM
NNTP-Posting-Host: loopkill.ebay.sun.com

In article 894@walter.cray.com, ssh@cray.com (Steven Hein) writes:
> I am writing a user interface in C++ using the XView toolkit.  But, I'm having a
> problem using stdarg.h and varargs in the same source file (XView uses varargs and I
> need to include some XView header files in this source).  Can anyone tell me:
> 
> 	a) how to make stdarg and varargs cooperate in the same C++ source file
> 
> 				OR
> 
> 	b) how to use varargs to implement a C++ member function declared like this:
> 
> 			void xxx::output(char* fmt, ...);
> 
> I don't need to parse the argument list--I just need to pass it to vsprintf() or
> to vfprintf().
> 
> Any help would be appreciated--I'm at my wit's end with this one...Also, I'm a newbie
> with this 'news' thing, so please email me any suggestions so I'm sure to get them!
> 
> Thanks!
> 
> ----
> Steve Hein
> Cray Research, Inc.
> tel.    (715) 726-5525
> email:  ssh@cray.com
> 

Steve,
	I ran into the same problem when I was trying to create a constructor with
variable argument lists.  My work around is below:

/* Variable args includes */
#include <stdarg.h>
#define  _sys_varargs_h                 /* prevent /usr/include/varargs.h */
#define  VARARGSH                       /* prevent ...CC/incl/varargs.h */


Paul
Newsgroups: comp.lang.c++
Distribution: world
From: stoney@cosoco.com (Stoney Ballard)
Organization: Component Software Corp., Lexington, MA USA
Date: Tue, 26 Jan 1993 07:42:01 EST
Subject: Re: Safe version of C++

 hendrik@vedge.com (Hendrik Boom) writes:
 > It appears that this safe, 
  > garbage-collectible C++ was/is-being devised 
  > by  Dave Detlefs and John Ellis, who will 
  > post an announcement when their paper is 
  > ready.  It includes a safe subset of C whose 
  > use precludes invalid pointers.               

You might be interested to know that Component Software Corp. has been
shipping a development environment for two months (on the Mac) with the following
features:

* safe subset of C++
* generational scavenger garbage collector
* incremental compiler and linker (only a couple of seconds between change and
test)
* edit, recompile, and relink running code
* portable, event driven applications framework.

and more. We are porting to Windows now, with other platforms later.

feel free to email me if you want more info.
------------------------------------------------------------
   Stonewall Ballard, CTO, Component Software Corp
					stoney@cosoco.com
  			 (apply standardDisclaimers argument)
------------------------------------------------------------