RE: [vhdl-200x] Why OOP vs Generics

From: Bailey, Stephen <stephen_bailey@mentor.com>
Date: Fri Mar 18 2011 - 14:53:09 PDT

I think a more accurate statement is that these are orthogonal language features. OOP and AOP benefit from generics. Generics could benefit from OOP, at least, since it is essentially a type and type can be a way of statically parameterizing an object of function. AOP does not technically require OOP – one could implement aspect-orientation in a functional language by allowing the definition of a function to be modified, from the side. However, it is more valuable and, surely, easier to implement in language design built on OOP as the intent is to modify (from the side) attributes and behaviors and OOP encapsulates both into a single object.

 

-Steve

 

From: owner-vhdl-200x@eda.org [mailto:owner-vhdl-200x@eda.org] On Behalf Of john.aynsley@doulos.com
Sent: Friday, March 18, 2011 1:56 PM
To: vhdl-200x@eda.org
Cc: vhdl-200x@eda.org
Subject: Re: [vhdl-200x] Why OOP vs Generics

 

AOP needs OOP. OOP needs generics. It ain't one or the other.

e had OOP-style inheritance as well as AOP-style inheritance. OOP languages make heavy use of "generics" in the form of type parameters (e.g. C++ templates). OOP without the ability to parameterize types was really clunky, because you ended up hacking the necessary flexibility re. types by casting void pointers.

John A

-----owner-vhdl-200x@eda.org wrote: -----

        To: "vhdl-200x@eda.org" <vhdl-200x@eda.org>
        From: Jim Lewis
        Sent by: owner-vhdl-200x@eda.org
        Date: 03/17/2011 10:29PM
        Subject: [vhdl-200x] Why OOP vs Generics
        
        Hi,
        Martin asked a question in this mornings meeting:
        why generics vs OOP/AOP programming? What are some
        examples where we need OOP/AOP over using generics?
        Particularly for testbenches.
        
        I would like to open/provoke the discussion from there.
        
        Best,
        Jim
        --
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        Jim Lewis
        Director of Training mailto:Jim@SynthWorks.com
        SynthWorks Design Inc. http://www.SynthWorks.com
        1-503-590-4787
        
        Expert VHDL Training for Hardware Design and Verification
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        
        --
        This message has been scanned for viruses and
        dangerous content by MailScanner, and is
        believed to be clean.

=
--
This message has been scanned for viruses and
dangerous content by MailScanner <http://www.mailscanner.info/> , and is
believed to be clean.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Fri Mar 18 14:53:39 2011

This archive was generated by hypermail 2.1.8 : Fri Mar 18 2011 - 14:53:49 PDT