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,644 of 2,978   
   Marco van de Voort to Jim Leonard   
   Re: Possible to inline this code?   
   03 Jun 08 08:08:24   
   
   98e05ee5   
   From: marcov@stack.nl   
      
   On 2008-06-02, Jim Leonard  wrote:   
   >>   
   >> Wrong wish, too easy macro facilities lead to abuse.   
   >   
   > Why?  I *want* to abuse it :-) (I need the speed in a few places)   
      
   There is no difference in speed. Macro's are the "my only tool is a hammer,   
   so make it a big and blunt one". It has the perception of powerful, but it   
   damages the equipment too much long term.   
      
   >> Better have inlining of proper functions, also across units. Admitted it   
   >> doesn't solve this case (assembler can't be inlined, and you can see why   
   >> from the example), but it is a very powerful feature.   
   >   
   > Well, a proper macro facility would eliminate the PUSH/POP behavior I   
   > just noted, so yes, I'd rather have macros.  With Inline code Pascal   
   > still thinks I am writing a "normal" procedure/function...   
      
   Not necessarily, since with inlining pascal that entire part (parameter   
   allocation, prologue, epilogue) is governed by the compiler, and thus can be   
   eliminated by it.   
      
   --- 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