473,795 Members | 3,041 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Inheritance and Shared Methods

1. I have a Base class that has a certain amount of functionality.
2. Then I have a CodeSmith generated class that inherits from the Base class
and adds functionality.
3. Since I want to be able to re-generate the classes on level 2 I have a
3rd level that inherits from them and implements specific hand coded
methods.
4. My colleague asked me to create a 4th level class that inherits the 3rd
level class so he can write custom functionality that overrides the "plain"
functionality at all levels above it.

I have 1-3 implemented as Shared methods.
To me, this enables simpler UI code.

For example:
strSQL = Level3ClassName .Select

In this way I do not need to instantiate an instance of the class I just use
the shared methods in levels 1-3.

=============== =============== =============== ==============
My problem (other than being new and not really understanding this well
enough yet <g> )
is I don't know how to implement Level 4 in a way that allows me to use
Shared methods in levels1-3 and yet Override them in Level 4.

Is it not possible?
=============== =============== =============== =============== ==

If I have to change Levels 1-3 what would you recommend?

=============== =============== =============== ===

Sample code:

Level 1
Public MustInherit Class Base

Public Shared Function DoSomething(ByV al Source As String) As String

End Function
=============== =============== =============== ===
Level 2
Public MustInherit Class GeneratedStuff

Inherits Base

Public Shared Function DoSomethingElse (ByVal Source As String) As String

End Function
=============== =============== =============== ===
Level 3
Public MustInherit Class HandCodedStuff

Inherits GeneratedStuff

Public Shared Function IWroteThis(ByVa l Source As String) As String

End Function
=============== =============== =============== ===
Level 4 (implements same functionality as Level 3 but also allows customized
changes by overriding methods or creating new ones that are specific to a
single client. Level 3 functionality is for all clients.)
Public MustInherit Class FinalLevel

Inherits HandCodedStuff

Overrides Function DoSomethingElse (ByVal Source As String) As String

End Function

Thanks for any advice!
--
Joe Fallon


Nov 20 '05
33 3500
Hi Cor,

LOL.

Different interpretations .

'Study a bit more, please'
The speaker is demanding.
I want you to do something.

'I suggest that you study a bit more.'
The speaker is offering.
Here's something you could do.
It's up to you.

That's the 'being-correct-about-English' version.

In the current emotional context, if I added 'please' I would be offering
sarcastic and insincere politeness as shown in that other message. I was
merely being 'pointed' in my tone.

But I believe I hear what you are saying, Cor - "why not start to mend the
rift". It's a worthy suggestion but one that will take some time. It's much
too early for HK and I'm not quite ready yet either.

Regards,
Fergus
Nov 20 '05 #21
Herfried,

I will continue to correct you when you make ridiculous statements about
me. It would be much better for everyone if you expressed your various angers
in the threads which have been previously taken over.

You are being very inconsiderate in using Joe Fallon's thread (and others)
to mouth off. It's fine when the OP has been answered and gone their way -
then you can treat a thread as you like. Until then it is much more respectful
to the OP, and everyone else, if you place your emotional OT words in the
fighting areas provided.

=============== ======
Keep it out of the mainstream.
=============== ======

Fergus

Nov 20 '05 #22
* "Fergus Cooney" <fi*****@post.c om> scripsit:
[...]

Please email me things like that and do not annoy the community by your
spam posts. Just remove the "spam-me-here" part of my mail address and
reply to it instead of destroying the group.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #23
Take this to the other thread.
Nov 20 '05 #24
Not ignoring, but don't see any reply from you at all to this message prior
to mine. So, thanks for the attitude.

"Fergus Cooney" <fi*****@post.c om> wrote in message
news:ux******** ******@TK2MSFTN GP10.phx.gbl...
Hi Scott,

If you are ignoring my posts, you won't have seen that I recommended using Shadows in this case.

Regards,
Fergus

Nov 20 '05 #25
Thanks Jay. I am aware of how OverRides and Shadows work (which is why I
suggested Shared in my second reply). I was just unaware that a class
member couldn't be marked as both Shared and OverRideable.

As for the rest of the bickerring in this thread, let me just say that I
don't see anything from Fergus on Shadows prior to my reply to Joe's
question, so I'm sorry if I repeated what he said.
"Jay B. Harlow [MVP - Outlook]" <Ja********@ema il.msn.com> wrote in message
news:O2******** ********@TK2MSF TNGP10.phx.gbl. ..
Scott,
As Fergus stated, he wrote up a little something on Shadows.

The problem is that Shadows does not Override functionality. Shadows Hides
functionality.

If you used Shadows and referred to the base class you will get the base
class functionality. The way I read Joe's comments, he wants to override the base class functionality, in that he could refer to the base class and see
the replaced functionality.

Don't get me wrong you can use Shadows in a situation like this, and in some ways its the "easiest" thing to use in Joe's case. However just be certain
you know what Shadows is giving you & not giving you.

For a sample of how to use Overrides in Joe's case, see my other long post
to this thread.

Hope this helps
Jay

"Scott M." <s-***@badspamsnet .net> wrote in message
news:Oo******** ******@TK2MSFTN GP09.phx.gbl...
What about Shadows then?
"Jay B. Harlow [MVP - Outlook]" <Ja********@ema il.msn.com> wrote in

message
news:ut******** ******@TK2MSFTN GP09.phx.gbl...
Scott,
Overrides & Shared are incompatible. You can only override Overridable
methods. Overridable methods cannot be Shared.

Hope this helps
Jay

"Scott M." <s-***@badspamsnet .net> wrote in message
news:uv******** *****@TK2MSFTNG P11.phx.gbl...
> I would think that in the 4th class if you wanted to use the shared
methods
> from classes 1-3, you would say "myBase.met hod" and in the 4th class you > could define an Overrides method that overrides the shared method in the > base class.
>
>
> "Joe Fallon" <jf******@nospa mtwcny.rr.com> wrote in message
> news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
> > 1. I have a Base class that has a certain amount of functionality.
> > 2. Then I have a CodeSmith generated class that inherits from the Base > class
> > and adds functionality.
> > 3. Since I want to be able to re-generate the classes on level 2 I

have
a
> > 3rd level that inherits from them and implements specific hand coded > > methods.
> > 4. My colleague asked me to create a 4th level class that inherits the 3rd
> > level class so he can write custom functionality that overrides the > "plain"
> > functionality at all levels above it.
> >
> > I have 1-3 implemented as Shared methods.
> > To me, this enables simpler UI code.
> >
> > For example:
> > strSQL = Level3ClassName .Select
> >
> > In this way I do not need to instantiate an instance of the class I
just
> use
> > the shared methods in levels 1-3.
> >
> > =============== =============== =============== ==============
> > My problem (other than being new and not really understanding this

well
> > enough yet <g> )
> > is I don't know how to implement Level 4 in a way that allows me
to use
> > Shared methods in levels1-3 and yet Override them in Level 4.
> >
> > Is it not possible?
> > =============== =============== =============== =============== ==
> >
> > If I have to change Levels 1-3 what would you recommend?
> >
> > =============== =============== =============== ===
> >
> > Sample code:
> >
> > Level 1
> > Public MustInherit Class Base
> >
> > Public Shared Function DoSomething(ByV al Source As String) As
String > >
> > End Function
> >
> >
> > =============== =============== =============== ===
> > Level 2
> > Public MustInherit Class GeneratedStuff
> >
> > Inherits Base
> >
> > Public Shared Function DoSomethingElse (ByVal Source As String) As

String
> >
> > End Function
> >
> >
> > =============== =============== =============== ===
> > Level 3
> > Public MustInherit Class HandCodedStuff
> >
> > Inherits GeneratedStuff
> >
> > Public Shared Function IWroteThis(ByVa l Source As String) As String > >
> > End Function
> >
> >
> > =============== =============== =============== ===
> > Level 4 (implements same functionality as Level 3 but also allows
> customized
> > changes by overriding methods or creating new ones that are specific to
a
> > single client. Level 3 functionality is for all clients.)
> > Public MustInherit Class FinalLevel
> >
> > Inherits HandCodedStuff
> >
> > Overrides Function DoSomethingElse (ByVal Source As String) As

String > >
> > End Function
> >
> >
> >
> > Thanks for any advice!
> > --
> > Joe Fallon
> >
> >
> >
> >
>
>



Nov 20 '05 #26
Hi Scott,

I think the apologies are mine. My message reads terribly on second look.
I meant to say that the answer to your question was yes and that there was
more information in my other post. The ignoring idea crept in and the wording
turned out badly. Sorry about that.

Regards,
Fergus
Nov 20 '05 #27
Scott,
Looking at the dates & times, Fergus's response was about 45 minutes after
your response, So when you gave your initial response it was not yet
available. My response was about 12 hours later, so I saw both of your
responses.
question, so I'm sorry if I repeated what he said. I would not worry about it. My comments are not meant to degrade or insult,
and I attempt to avoid "static". I referenced Fergus's response as I saw his
response and I did not want to duplicate the information for you. As at that
point in time, you could have simply read Fergus's response.
I was just unaware that a class
member couldn't be marked as both Shared and OverRideable. A number of developers have been asking for the ability, I believe a fair
share of these developers are coming from Delphi, as I am only really aware
of Delphi has the ability. I see value it allowing it, however my concern is
It raises the bar yet again of how much you really need to know to be an
effective .NET programmer. As oppose to "being little kids" and either
avoiding the features of .NET or abusing the features. Because they either
don't understand the feature or you don't know the feature exists. Or worse,
"we did it this way in VB6, so obviously we can do it the sam way in
VB.NET".

I have not seen anything in the road map that would suggest we are getting
it in VS.NET 2004.

Hope this helps
Jay

"Scott M." <s-***@badspamsnet .net> wrote in message
news:%2******** *******@TK2MSFT NGP12.phx.gbl.. . Thanks Jay. I am aware of how OverRides and Shadows work (which is why I
suggested Shared in my second reply). I was just unaware that a class
member couldn't be marked as both Shared and OverRideable.

As for the rest of the bickerring in this thread, let me just say that I
don't see anything from Fergus on Shadows prior to my reply to Joe's
question, so I'm sorry if I repeated what he said.
"Jay B. Harlow [MVP - Outlook]" <Ja********@ema il.msn.com> wrote in message news:O2******** ********@TK2MSF TNGP10.phx.gbl. ..
Scott,
As Fergus stated, he wrote up a little something on Shadows.

The problem is that Shadows does not Override functionality. Shadows Hides
functionality.

If you used Shadows and referred to the base class you will get the base
class functionality. The way I read Joe's comments, he wants to override the
base class functionality, in that he could refer to the base class and see the replaced functionality.

Don't get me wrong you can use Shadows in a situation like this, and in

some
ways its the "easiest" thing to use in Joe's case. However just be certain you know what Shadows is giving you & not giving you.

For a sample of how to use Overrides in Joe's case, see my other long post to this thread.

Hope this helps
Jay

"Scott M." <s-***@badspamsnet .net> wrote in message
news:Oo******** ******@TK2MSFTN GP09.phx.gbl...
What about Shadows then?
"Jay B. Harlow [MVP - Outlook]" <Ja********@ema il.msn.com> wrote in

message
news:ut******** ******@TK2MSFTN GP09.phx.gbl...
> Scott,
> Overrides & Shared are incompatible. You can only override Overridable > methods. Overridable methods cannot be Shared.
>
> Hope this helps
> Jay
>
> "Scott M." <s-***@badspamsnet .net> wrote in message
> news:uv******** *****@TK2MSFTNG P11.phx.gbl...
> > I would think that in the 4th class if you wanted to use the shared > methods
> > from classes 1-3, you would say "myBase.met hod" and in the 4th class
you
> > could define an Overrides method that overrides the shared method
in the
> > base class.
> >
> >
> > "Joe Fallon" <jf******@nospa mtwcny.rr.com> wrote in message
> > news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
> > > 1. I have a Base class that has a certain amount of
functionality. > > > 2. Then I have a CodeSmith generated class that inherits from the Base
> > class
> > > and adds functionality.
> > > 3. Since I want to be able to re-generate the classes on level 2
I have
> a
> > > 3rd level that inherits from them and implements specific hand

coded > > > methods.
> > > 4. My colleague asked me to create a 4th level class that inherits the
> 3rd
> > > level class so he can write custom functionality that overrides the > > "plain"
> > > functionality at all levels above it.
> > >
> > > I have 1-3 implemented as Shared methods.
> > > To me, this enables simpler UI code.
> > >
> > > For example:
> > > strSQL = Level3ClassName .Select
> > >
> > > In this way I do not need to instantiate an instance of the
class I just
> > use
> > > the shared methods in levels 1-3.
> > >
> > > =============== =============== =============== ==============
> > > My problem (other than being new and not really understanding
this well
> > > enough yet <g> )
> > > is I don't know how to implement Level 4 in a way that allows me

to use
> > > Shared methods in levels1-3 and yet Override them in Level 4.
> > >
> > > Is it not possible?
> > > =============== =============== =============== =============== ==
> > >
> > > If I have to change Levels 1-3 what would you recommend?
> > >
> > > =============== =============== =============== ===
> > >
> > > Sample code:
> > >
> > > Level 1
> > > Public MustInherit Class Base
> > >
> > > Public Shared Function DoSomething(ByV al Source As String) As String > > >
> > > End Function
> > >
> > >
> > > =============== =============== =============== ===
> > > Level 2
> > > Public MustInherit Class GeneratedStuff
> > >
> > > Inherits Base
> > >
> > > Public Shared Function DoSomethingElse (ByVal Source As String) As String
> > >
> > > End Function
> > >
> > >
> > > =============== =============== =============== ===
> > > Level 3
> > > Public MustInherit Class HandCodedStuff
> > >
> > > Inherits GeneratedStuff
> > >
> > > Public Shared Function IWroteThis(ByVa l Source As String) As String > > >
> > > End Function
> > >
> > >
> > > =============== =============== =============== ===
> > > Level 4 (implements same functionality as Level 3 but also allows > > customized
> > > changes by overriding methods or creating new ones that are specific to
> a
> > > single client. Level 3 functionality is for all clients.)
> > > Public MustInherit Class FinalLevel
> > >
> > > Inherits HandCodedStuff
> > >
> > > Overrides Function DoSomethingElse (ByVal Source As String) As String > > >
> > > End Function
> > >
> > >
> > >
> > > Thanks for any advice!
> > > --
> > > Joe Fallon
> > >
> > >
> > >
> > >
> >
> >
>
>



Nov 20 '05 #28
Thanks Jay.
"Jay B. Harlow [MVP - Outlook]" <Ja********@ema il.msn.com> wrote in message
news:OB******** ******@TK2MSFTN GP09.phx.gbl...
Scott,
Looking at the dates & times, Fergus's response was about 45 minutes after
your response, So when you gave your initial response it was not yet
available. My response was about 12 hours later, so I saw both of your
responses.
question, so I'm sorry if I repeated what he said. I would not worry about it. My comments are not meant to degrade or

insult, and I attempt to avoid "static". I referenced Fergus's response as I saw his response and I did not want to duplicate the information for you. As at that point in time, you could have simply read Fergus's response.
I was just unaware that a class
member couldn't be marked as both Shared and OverRideable. A number of developers have been asking for the ability, I believe a fair
share of these developers are coming from Delphi, as I am only really

aware of Delphi has the ability. I see value it allowing it, however my concern is It raises the bar yet again of how much you really need to know to be an
effective .NET programmer. As oppose to "being little kids" and either
avoiding the features of .NET or abusing the features. Because they either
don't understand the feature or you don't know the feature exists. Or worse, "we did it this way in VB6, so obviously we can do it the sam way in
VB.NET".

I have not seen anything in the road map that would suggest we are getting
it in VS.NET 2004.

Hope this helps
Jay

"Scott M." <s-***@badspamsnet .net> wrote in message
news:%2******** *******@TK2MSFT NGP12.phx.gbl.. .
Thanks Jay. I am aware of how OverRides and Shadows work (which is why I
suggested Shared in my second reply). I was just unaware that a class
member couldn't be marked as both Shared and OverRideable.

As for the rest of the bickerring in this thread, let me just say that I
don't see anything from Fergus on Shadows prior to my reply to Joe's
question, so I'm sorry if I repeated what he said.
"Jay B. Harlow [MVP - Outlook]" <Ja********@ema il.msn.com> wrote in message
news:O2******** ********@TK2MSF TNGP10.phx.gbl. ..
Scott,
As Fergus stated, he wrote up a little something on Shadows.

The problem is that Shadows does not Override functionality. Shadows Hides functionality.

If you used Shadows and referred to the base class you will get the base class functionality. The way I read Joe's comments, he wants to
override the
base class functionality, in that he could refer to the base class and see the replaced functionality.

Don't get me wrong you can use Shadows in a situation like this, and
in some
ways its the "easiest" thing to use in Joe's case. However just be certain you know what Shadows is giving you & not giving you.

For a sample of how to use Overrides in Joe's case, see my other long post to this thread.

Hope this helps
Jay

"Scott M." <s-***@badspamsnet .net> wrote in message
news:Oo******** ******@TK2MSFTN GP09.phx.gbl...
> What about Shadows then?
>
>
> "Jay B. Harlow [MVP - Outlook]" <Ja********@ema il.msn.com> wrote in
message
> news:ut******** ******@TK2MSFTN GP09.phx.gbl...
> > Scott,
> > Overrides & Shared are incompatible. You can only override Overridable > > methods. Overridable methods cannot be Shared.
> >
> > Hope this helps
> > Jay
> >
> > "Scott M." <s-***@badspamsnet .net> wrote in message
> > news:uv******** *****@TK2MSFTNG P11.phx.gbl...
> > > I would think that in the 4th class if you wanted to use the shared > > methods
> > > from classes 1-3, you would say "myBase.met hod" and in the 4th class you
> > > could define an Overrides method that overrides the shared
method in the
> > > base class.
> > >
> > >
> > > "Joe Fallon" <jf******@nospa mtwcny.rr.com> wrote in message
> > > news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
> > > > 1. I have a Base class that has a certain amount of functionality. > > > > 2. Then I have a CodeSmith generated class that inherits from the Base
> > > class
> > > > and adds functionality.
> > > > 3. Since I want to be able to re-generate the classes on level
2
I > have
> > a
> > > > 3rd level that inherits from them and implements specific hand

coded
> > > > methods.
> > > > 4. My colleague asked me to create a 4th level class that inherits the
> > 3rd
> > > > level class so he can write custom functionality that
overrides the
> > > "plain"
> > > > functionality at all levels above it.
> > > >
> > > > I have 1-3 implemented as Shared methods.
> > > > To me, this enables simpler UI code.
> > > >
> > > > For example:
> > > > strSQL = Level3ClassName .Select
> > > >
> > > > In this way I do not need to instantiate an instance of the class
I
> just
> > > use
> > > > the shared methods in levels 1-3.
> > > >
> > > > =============== =============== =============== ==============
> > > > My problem (other than being new and not really understanding

this > well
> > > > enough yet <g> )
> > > > is I don't know how to implement Level 4 in a way that allows
me to
> use
> > > > Shared methods in levels1-3 and yet Override them in Level 4.
> > > >
> > > > Is it not possible?
> > > > =============== =============== =============== =============== ==
> > > >
> > > > If I have to change Levels 1-3 what would you recommend?
> > > >
> > > > =============== =============== =============== ===
> > > >
> > > > Sample code:
> > > >
> > > > Level 1
> > > > Public MustInherit Class Base
> > > >
> > > > Public Shared Function DoSomething(ByV al Source As String) As

String
> > > >
> > > > End Function
> > > >
> > > >
> > > > =============== =============== =============== ===
> > > > Level 2
> > > > Public MustInherit Class GeneratedStuff
> > > >
> > > > Inherits Base
> > > >
> > > > Public Shared Function DoSomethingElse (ByVal Source As String)

As > String
> > > >
> > > > End Function
> > > >
> > > >
> > > > =============== =============== =============== ===
> > > > Level 3
> > > > Public MustInherit Class HandCodedStuff
> > > >
> > > > Inherits GeneratedStuff
> > > >
> > > > Public Shared Function IWroteThis(ByVa l Source As String) As

String
> > > >
> > > > End Function
> > > >
> > > >
> > > > =============== =============== =============== ===
> > > > Level 4 (implements same functionality as Level 3 but also allows > > > customized
> > > > changes by overriding methods or creating new ones that are

specific
> to
> > a
> > > > single client. Level 3 functionality is for all clients.)
> > > > Public MustInherit Class FinalLevel
> > > >
> > > > Inherits HandCodedStuff
> > > >
> > > > Overrides Function DoSomethingElse (ByVal Source As String) As

String
> > > >
> > > > End Function
> > > >
> > > >
> > > >
> > > > Thanks for any advice!
> > > > --
> > > > Joe Fallon
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Nov 20 '05 #29
No problem Fergus. Thanks.
"Fergus Cooney" <fi*****@post.c om> wrote in message
news:eq******** ********@TK2MSF TNGP10.phx.gbl. ..
Hi Scott,

I think the apologies are mine. My message reads terribly on second look. I meant to say that the answer to your question was yes and that there was
more information in my other post. The ignoring idea crept in and the wording turned out badly. Sorry about that.

Regards,
Fergus

Nov 20 '05 #30

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
10087
by: km | last post by:
Hi all, In the following code why am i not able to access class A's object attribute - 'a' ? I wishto extent class D with all the attributes of its base classes. how do i do that ? thanks in advance for enlightment ... here's the snippet #!/usr/bin/python
3
1703
by: marv | last post by:
If I have abstract base classes like these: //--------- class IBase { public: virtual void Action(void) = 0; };
14
12921
by: Steve Jorgensen | last post by:
Recently, I tried and did a poor job explaining an idea I've had for handling a particular case of implementation inheritance that would be easy and obvious in a fully OOP language, but is not at all obvious in VBA which lacks inheritance. I'm trying the explanation again now. I often find cases where a limited form of inheritance would eliminate duplication my code that seems impossible to eliminate otherwise. I'm getting very...
5
2050
by: Invalidlastname | last post by:
Hi, I just read the pattern "Design and Implementation Guidelines for Web Clients" from MSDN. Here is my question. In chapter 3, http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/diforwc-ch03.asp , the article mentions using page inheritance to maintain common page layout. We currently use page inheritance approach to segment the function areas. In each function area, there is a base page to provide the common...
10
1250
by: John | last post by:
Hi, How can I achieve that a childs constructor is only callable from it's parent? Must I declare the class Private within A? Thanks in Advance Public MustInherit Class A Protected Sub New()
2
1204
by: rodchar | last post by:
hey all, i have a MustInherit class and a derived class. is it possible to have a shared method in the base class and use it? Note: this is not working for me but just going to explain. i have a base class that has a shared function that returns a connection string for a datasource. is there a way for the derived class to use that? when i try me.connStr it says i have to instantiate it.
5
1096
by: AWesner | last post by:
I've been working on a project to help myself better understand how inherited classes work. I think I've learned more about classes by doing this than any other effort I've made. I've tried to create a simple problem by creating a class named TestThis that inherits System.Windows.Forms.Form and then adding one shared procedure to this. I set the form to inherit TestThis instead and it gets everything plus the one procedure that I've...
6
1887
by: burningodzilla | last post by:
Hi all - I'm preparing to dive in to more complex application development using javascript, and among other things, I'm having a hard time wrapping my head around an issues regarding "inheritance" using the prototype property. I realize there are no classes in JS, that code therefore lives in objects instead of class definitions, and that "inheritance" must be achieved prototypically and not classically. That said, on with the code. Say I...
8
1312
by: tharringtonan | last post by:
I am compiling the following code, main.cpp, as follows: gcc main.cpp I get the following compile error: main.cpp: In function `int main()': main.cpp:28: no matching function for call to `CPolygon::area()' The code is listed below:
0
9519
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10438
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10214
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9042
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7540
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3727
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.