generic functions
    orgoton 
    orgoton at mindless.com
       
    Fri Apr 27 05:09:09 PDT 2007
    
    
  
I've been trying to create a function that would receive a single variable of any type, like a "abs" function, so that I won't have to code the same function for "real" and "long" var types. What's the most straightforward way to do it? I've seen templates at the D documentation, but those require me to instantiate the function. Is there anyway to bypass this?
    
    
More information about the Digitalmars-d-learn
mailing list