www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/09/18/19:18:33

Date: Thu, 19 Sep 1996 10:48:29 +0000
From: Bill Currie <billc AT blackmagic DOT tait DOT co DOT nz>
Subject: Re: gnu pascal unit problem
To: hk AT bercos DOT de
Cc: djgpp AT delorie DOT com
Message-id: <324124FD.13BD@blackmagic.tait.co.nz>
Organization: Tait Electronics NZ
MIME-version: 1.0
References: <Dxx3Bv DOT 2G5 AT bercos DOT de>

Helge Kruse wrote:
> 
> Hello,
> 
> I don't know, if this newsgroup should become a Pascal
> group. But the gpc-djgpp seems to be the topic....
> 
> I downloaded the version 1.2-2.7.2 of gpc and tried a unit
> sample. But the code won't work. It's so small, that Id like
> to post the code here:

[snip]

> 
> uses u1,u2;
> 

[snip]

>         u1('abc');
>         writeln('f2 returns:',f2(3));

[snip]


Err, I don't know about gpc, but i think borland (turbo) pascal used to 
complain about redefined identifiers if you named your functions the same 
as units (maybe try u1.u1('abc'))

Gosh, it's been 2 years since I did any work in pascal, and 6 for 
anything realy major (I got introduced to C :) )

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019