Date: Thu, 19 Sep 1996 10:48:29 +0000 From: Bill Currie 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 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit References: 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 :) )