home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.pascal.borland      Borland Pascal was actually pretty neat      2,978 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,618 of 2,978   
   Marco van de Voort to Jim Leonard   
   Re: How to handle this OOP/inheritance p   
   10 Feb 08 11:31:10   
   
   b84c95a1   
   From: marcov@stack.nl   
      
   On 2008-02-10, Jim Leonard  wrote:   
   >> You could also use a procedural "data-getter" method of TSong that retrieves   
   >> data from the Song and stores it in a buffer of the TPlayer. The TSong (or a   
   >> 3rd party) would pass the function to the TPlayer, which would then call it   
   >> whenever it needs "feeding".   
   >   
   > Not a bad idea at all; it would certainly cut down on calling a   
   > bazillion methods just to get one timer tick's worth of note data.   
   >   
   > If my target platform were something other than an 8088, I would   
   > virtualize everything to within an inch of its life :-) but instead I   
   > have to balance form with function.   
      
   That is a simple calculation what is cheaper:   
      
   - one size fits all, one datastructure to edit and play.   
      
   or   
      
   - two datastructures and a transformation.   
      
      
   While the transformation is extra work, it might pay off because both other   
   aspects use a datastructure tailored for them.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca