Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

function overloading for and

Status
Not open for further replies.

chaitanyapraveen

Newbie level 4
Joined
Mar 28, 2012
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,309
I am chaitanya from pune.I would like to know about the function overloading for and.could any one help me in doing this.
 

Why do you want to overload it? and what do you want to overload it for?
 

I am chaitanya from pune.I would like to know about the function overloading for and.could any one help me in doing this.
- Define the data types that you want 'and' to overload. The format of your response here is to replace xxx with the data type you want to 'and':
Code:
    function "and" (L, R: xxx) return xxx;
- Define the function you want to compute. The format of your response here is to replace the comment with how you want 'and' to now operate:
Code:
    function "and" (L, R: xxx) return xxx is
  variable RetVal:  xxx;
begin
   RetVal := -- Put your code here to compute what value you want to return
   return(RetVal);
end function "and";

Presto! You've overloaded the 'and' function.

Kevin Jennings
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top