🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c++.leda
Article #96

data members of type "a LEDA type" / deriving from a LEDA type

#96
From: Bulent Basaran
Date: Mon, 25 Sep 1995 15:41
25 lines
1049 bytes
Hi,
I have two questions:

1) Is it possible to have a data member of a user class with a LEDA type?
e.g.,
class C1{
    array<string> A(0, 10);  // an array of strings
}; 
This is not a valid c++ statement, since data members can not be initialized.
Is there a way to correctly implement this?

2) Is it possible to derive from a LEDA type?
e.g., 
class C1: public d_array {
...
}

Thanks in advance,

Bulent
bulent@cmu.edu   basaran@ece.cmu.edu    Dept. of Electrical and Computer Eng.  
+1 412 268 6646 (Office)                Carnegie Mellon University
+1 412 687 4220 (Home)                  
http://www.ece.cmu.edu/afs/ece/usr/basaran/home.html
Technical Details
Message-ID: <199509251541.LAA02912@prelude.ece.cmu.edu>
Path: arc1-ca.pugleaf.net!andrew.cmu.edu!postman+

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!andrew.cmu.edu!postman+
From: Bulent Basaran <basaran@prelude.ece.cmu.edu>
Newsgroups: comp.lang.c++.leda
Subject: data members of type "a LEDA type" / deriving from a LEDA type
Date: Mon, 25 Sep 1995 11:41:05 -0400
Organization: Carnegie Mellon, Pittsburgh, PA
Message-ID: <199509251541.LAA02912@prelude.ece.cmu.edu>
NNTP-Posting-Host: po6.andrew.cmu.edu