home bbs files messages ]

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

   comp.os.vms      DEC's VAX* line of computers & VMS.      264,096 messages   

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

   Message 262,265 of 264,096   
   =?UTF-8?Q?Arne_Vajh=C3=B8j?= to John Reagan   
   Re: Fun trick   
   14 Jan 25 11:06:23   
   
   From: arne@vajhoej.dk   
      
   On 1/13/2025 9:11 PM, John Reagan wrote:   
   > On 1/13/2025 5:55 PM, Arne Vajhøj wrote:   
   >> On 1/13/2025 5:18 PM, Lawrence D'Oliveiro wrote:   
   >>> On Mon, 13 Jan 2025 13:45:50 -0500, Arne Vajhøj wrote:   
   >>>> There are probably a lot of shareable images written in C out there   
   >>>> where the developer has no idea that they are runnable or what code   
   >>>> will   
   >>>> run.   
   >>>   
   >>> If it has no main(), then nothing will run.   
   >>   
   >> That is what the developer thinks.   
   >>   
   >> But it is not so.   
   >>   
   >> $ type lawrence.c   
   >> #include    
   >>   
   >> int foobar()   
   >> {   
   >>      printf("Hi Lawrence\n");   
   >>      return 1;   
   >> }   
   >> $ cc lawrence   
   >> $ link/share  lawrence   
   >> $ run lawrence   
   >> Hi Lawrence   
   >>   
   >> No main() and it runs anyway.   
   >>   
   > COBOL paragraphs behave like C.  First routine/PARAGRAPH gets a WEAK   
   > transfer address.  Linker finds the first one.   
      
   I have many prejudices about COBOL developers.   
      
   One of them is that they don't create shareable images.   
      
   :-)   
      
   Arne   
      
   --- SoupGate-DOS v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

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


(c) 1994,  bbs@darkrealms.ca