Re: Subroutine IMC example with problem

2002-12-06 Thread Leopold Toetsch
[EMAIL PROTECTED] wrote: Leo -- If .sub ... .end bracket not a subroutine, but a unit of compilation (module?), then shouldn't we make the name reflect the purpose? A thing compiled in one piece ist mostly a subroutine. I disagree. A think what is most often compiled in one piece is a f

Re: Subroutine IMC example with problem

2002-12-06 Thread gregor
Leo -- > > If .sub ... .end bracket not a subroutine, but a unit of compilation > > (module?), then > > shouldn't we make the name reflect the purpose? > A thing compiled in one piece ist mostly a subroutine. I disagree. A think what is most often compiled in one piece is a file, with a combina

Re: Subroutine IMC example with problem

2002-12-06 Thread Leopold Toetsch
[EMAIL PROTECTED] wrote: Leo -- If .sub ... .end bracket not a subroutine, but a unit of compilation (module?), then shouldn't we make the name reflect the purpose? A thing compiled in one piece ist mostly a subroutine. BTW, what is the difference between .sym and .local? UTSL ;-) no

Re: Subroutine IMC example with problem

2002-12-06 Thread gregor
difference between .sym and .local? And, .endclass and .endnamespace are not mentioned in imcc/README. Regards, -- Gregor Leopold Toetsch <[EMAIL PROTECTED]> 12/05/2002 12:43 PM To: [EMAIL PROTECTED] cc: [EMAIL PROTECTED] Subject: Re: Subrou

Re: Subroutine IMC example with problem

2002-12-05 Thread Leopold Toetsch
[EMAIL PROTECTED] wrote: Leo -- * Bracket with one big .sub ... .end, and don't use .sub for my real subs (yuck -- I want to use .param, .arg, etc for subs and calls) You can use .param/.arg - again: "A .sub/.end delimits a unit of compilation". Look at imcc.y .param => restore, .arg =>

Re: Subroutine IMC example with problem

2002-12-05 Thread gregor
[EMAIL PROTECTED] cc: [EMAIL PROTECTED] Subject:Re: Subroutine IMC example with problem [EMAIL PROTECTED] wrote: > > error:imcc:iANY file sub.imc line 36: op not found 'set_ic_ic' 2 "mistakes" here: - branches between subs ar

Re: Subroutine IMC example with problem

2002-12-05 Thread Leopold Toetsch
[EMAIL PROTECTED] wrote: error:imcc:iANY file sub.imc line 36: op not found 'set_ic_ic' 2 "mistakes" here: - branches between subs are not subject to fixup - x is not declared in here: .sub __ANON_BLOCK__1 set x, 42 #

Subroutine IMC example with problem

2002-12-05 Thread gregor
Below you will find a simple Jako program along with the IMC code the Jako compiler generates. The IMC compiler generates the following error: error:imcc:iANY file sub.imc line 36: op not found 'set_ic_ic' (set<2>) on the first ".arg x" instance in the .imc file. I'm not sure why that l