[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] name space



Rasmus Andersen wrote:
> 
> On Thu, May 24, 2001 at 04:53:13PM +0200, Egon Andersen, Talura wrote:
> > Hej,
> >
> > Jeg har et problem med 'name space' i 'C'.
> > Eksempel:
> >
> > struct Alpha
> >   {
> >   struct Beta
> >     {
> >     int a;
> >     int b;
> >     } beta;
> >   } alpha;
> >
> > struct Gamma
> >   {
> >   struct Beta
> >     {
> >     char c;
> >     char d;
> >     } beta;
> >   } gamma;
> >
> > Dette giver konflikt, da Beta indgår i både Alpha og Gamma.
> 
> _Skal_ de vaere indlejrede? Eller kan du klare dig med en pointer
> som den oplagte vej ud?
> 
> Rasmus

Jeg kan fint benytte pointere, hvis det altså skulle hjælpe med til at
løse problemet. Jeg kan bare ikke se hvordan du mener det skulle hjælpe,
da de to indlejrede strukturer med navnene Beta netop ikke har det samme
indhold.

/Egon


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:08 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *