Click here to Skip to main content
15,892,927 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: OO is not all that and a bag of chips Pin
Stefan_Lang31-Mar-20 5:24
Stefan_Lang31-Mar-20 5:24 
GeneralRe: OO is not all that and a bag of chips Pin
Gary R. Wheeler30-Mar-20 12:57
Gary R. Wheeler30-Mar-20 12:57 
GeneralRe: OO is not all that and a bag of chips Pin
honey the codewitch30-Mar-20 13:14
mvahoney the codewitch30-Mar-20 13:14 
GeneralRe: OO is not all that and a bag of chips Pin
PIEBALDconsult28-Mar-20 13:51
mvePIEBALDconsult28-Mar-20 13:51 
GeneralRe: OO is not all that and a bag of chips Pin
Greg Utas28-Mar-20 13:55
professionalGreg Utas28-Mar-20 13:55 
GeneralRe: OO is not all that and a bag of chips Pin
honey the codewitch28-Mar-20 14:45
mvahoney the codewitch28-Mar-20 14:45 
GeneralRe: OO is not all that and a bag of chips Pin
Greg Utas28-Mar-20 15:51
professionalGreg Utas28-Mar-20 15:51 
GeneralRe: OO is not all that and a bag of chips Pin
honey the codewitch28-Mar-20 16:09
mvahoney the codewitch28-Mar-20 16:09 
I know what aspects are.

To be clear:

Where they tie in here, is you create "services" for your classes - implemented as templates that take your own class as a template argument.

Those allow you to encapsulate orthogonal class services to a degree. It doesn't always allow for complex cross-cutting scenarios, and arbitrarily wrapping methods with pre and post code takes some vtbl foolery (microsoft takes this approach with certain ATL internals) but you get your aspects this way.

It's kind of primitive and just as "kludgy but powerful" as templates are. Between the above and using type traits and such you can get it to do a lot of what you would do with aspect oriented builtins in a higher level language
Real programmers use butterflies

GeneralRe: OO is not all that and a bag of chips Pin
Greg Utas29-Mar-20 0:09
professionalGreg Utas29-Mar-20 0:09 
GeneralRe: OO is not all that and a bag of chips Pin
honey the codewitch29-Mar-20 1:44
mvahoney the codewitch29-Mar-20 1:44 
GeneralRe: OO is not all that and a bag of chips Pin
Mircea Neacsu28-Mar-20 15:35
Mircea Neacsu28-Mar-20 15:35 
GeneralRe: OO is not all that and a bag of chips Pin
honey the codewitch28-Mar-20 16:15
mvahoney the codewitch28-Mar-20 16:15 
GeneralRe: OO is not all that and a bag of chips Pin
Nelek28-Mar-20 22:58
protectorNelek28-Mar-20 22:58 
GeneralRe: OO is not all that and a bag of chips Pin
honey the codewitch29-Mar-20 1:46
mvahoney the codewitch29-Mar-20 1:46 
GeneralRe: OO is not all that and a bag of chips Pin
Martin ISDN28-Mar-20 21:44
Martin ISDN28-Mar-20 21:44 
GeneralRe: OO is not all that and a bag of chips Pin
Greg Utas29-Mar-20 0:29
professionalGreg Utas29-Mar-20 0:29 
GeneralRe: OO is not all that and a bag of chips Pin
Nelek29-Mar-20 1:12
protectorNelek29-Mar-20 1:12 
GeneralRe: OO is not all that and a bag of chips Pin
honey the codewitch29-Mar-20 1:37
mvahoney the codewitch29-Mar-20 1:37 
GeneralRe: OO is not all that and a bag of chips Pin
Greg Utas29-Mar-20 2:01
professionalGreg Utas29-Mar-20 2:01 
GeneralRe: OO is not all that and a bag of chips Pin
Martin ISDN29-Mar-20 13:16
Martin ISDN29-Mar-20 13:16 
GeneralRe: OO is not all that and a bag of chips Pin
Greg Utas29-Mar-20 14:14
professionalGreg Utas29-Mar-20 14:14 
GeneralRe: OO is not all that and a bag of chips Pin
Martin ISDN31-Mar-20 2:08
Martin ISDN31-Mar-20 2:08 
GeneralRe: OO is not all that and a bag of chips Pin
Stefan_Lang31-Mar-20 4:54
Stefan_Lang31-Mar-20 4:54 
GeneralRe: OO is not all that and a bag of chips Pin
CodeWraith28-Mar-20 14:08
CodeWraith28-Mar-20 14:08 
GeneralRe: OO is not all that and a bag of chips Pin
honey the codewitch28-Mar-20 14:42
mvahoney the codewitch28-Mar-20 14:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.