HDTenEightyP/NetNews huggingface dataset:
From: tchannon@black.demon.co.uk (Tim Channon)
Newsgroups: comp.lang.modula2
Subject: Re: multiple implementations
Date: 16 Oct 92 00:49:47 GMT
Organization: null
ReplyTo: tchannon@black.demon.co.uk
X-Mailer: cppnews $Revision: 1.18 $

> The answer to the original question, though, depends very much on the
> environment supplied with the compiler.  The obvious solution is
> to have three files:
>     STACK.DEF
>               starts with "DEFINITION MODULE Stack;"
>     STACK1.MOD
>               starts with "IMPLEMENTATION MODULE Stack;"
>     STACK2.MOD
>               starts with "IMPLEMENTATION MODULE Stack;"
> 
> ...

> Now that I've started using TopSpeed M2, the whole structure collapses,
> for two reasons:

It is indeed a nuisance.

(*# pragma(implementation=>off) *)

and use explicit project file link with the relevant precompiled 
implementation modules might work but I haven't tried it. This is after all 
how people operate who do not possess the library source.

Further pragmas and project file directives can sort out all sort of horrid 
problems eg. a program which uses multi-language and third party libraries can 
be done. 

I find that I am increasingly using complex project files where the 
do-it-fo-you cannot work.

The documentation doesn't seem to help eg. some of the C compatibility 
directives did not work, nothing happened and no error msgs. Worked just fine 
when placed in the definition file! Obvious in hindsight.
Try experimenting with the underscore directive.

There is also the method using conditional compilation. Look at the assembler 
lib source for lots of examples.

>  (b) the TopSpeed system won't even accept the file names I used above,
>      since it requires a match between the source file name and the module
>      name (rather than the more logical approach of requiring a match
>      between the module name and the symbol file name).

I like this.

  TC. 
    E-mail: tchannon@black.demon.co.uk or tchannon@cix.compulink.co.uk
                                
Newsgroups: comp.lang.modula2
From: binky@mailer.cc.fsu.edu (Ralph Axel Zuniga)
Subject: Re: FST 3.0 DOS and LZEXE
Organization: FSU/FREAC/CAR
Date: Sun, 11 Oct 92 23:53:58 GMT

In article <1992Oct10.232002.8061@ac.dal.ca> chip@ac.dal.ca writes:
>From: chip@ac.dal.ca
>Subject: FST 3.0 DOS and LZEXE
>Date: 10 Oct 92 23:20:01 -0300

>Hello,

>  I just got a copy of FST Modula-2 (3.0).  I compiled the sample program,
>  using all the defaults.  When I tried to compress the EXE with LZEXE,
>  it compressed but when I re-ran the file it locked up my system.

>Is there any reason why the shareware version of FST M2 wouldn't let
>me use an EXE compressor on my compiled code?

>Thanks....Mark Klaamas
From: Narti.Kitiyakara@f1.n396.z1.fidonet.org (Narti Kitiyakara)
Newsgroups: comp.lang.modula2
Subject: Modula-2 in french
Date: 10 Oct 92 18:29:00 GMT
Article-I.D.: puddle.7698.2AD8E0D9
Organization: FidoNet node 1:396/1 - The Southern Star, New Orleans LA


 -=> Quoting Yves Auger to Narti Kitiyakara <=-

 YA> Anyway, I am sure that I never saw those bugs.

 YA> ... I couldn't

     I wouldn't worry too much about them.  The one's you
 might find are in the library and easily corrected, there
 were a couple of bugs in the compiler, but they're also
 fairly obscure.  (I just have a knack for finding them.)

 YA> It seems to me that the approach of computer science will 
 YA> be well served with Modula-2. I am very new in Modula but 
 YA> it attract me enough to try it in my classroom.

     I was thinking in terms of the compiler itself, using
 Modula-2 should be fine for high-school level.  (Although
 in University I'd prefer to see a more formal course based
 on, for example, Gries' _The Science of Programming_.)
 
     If you go with the Logitech/Multiscope compiler, try to
 stop your students getting seduced by the debugging tools.
 I'd make them write down in advance what they expect to learn
 by using the debugger.  This will hopefully stop them floudering
 around without actually trying to think about the problem.
 (Warning: I believe this, but I've no practical experience at
 teaching programming.)

 YA> If you also know some references (books) in french talking 
 YA> about Modula, I am interested.

     I'm afraid that I can't help here.  I've been teaching myself
 French for a year or so, but I still rely on English for my 
 technical books.

                                        - Narti

___ Blue Wave/QWK v2.10


--  
uucp: uunet!m2xenix!puddle!396!1!Narti.Kitiyakara
Internet: Narti.Kitiyakara@f1.n396.z1.fidonet.org
From: garlock@news.cis.ohio-state.edu (erin jon garlock)
Newsgroups: comp.lang.modula2
Subject: Parallel reading of a single file...help
Date: 14 Oct 92 14:24:02 GMT
Organization: The Ohio State University Department of Computer and Information Science


Is there anyway I can parallel read a single file.  What I see is something
like the following:

VAR
    afile, bfile: FILE;
. 
. 
Open(afile, 'generic',textMode,readOnly,ok);
bfile := afile;
ReadString(afile,string,ok);
ReadLn(afile,ok);

Am I right to assume that afile is now on the second line of 'generic' and
bfile is still at the current first line??

If this incorrect, how can I do this...

Please respond to me as I do not frequent this newsgroup.
Thanks,

-- 
_______________________________________________________________
_ _ /;		Erin Garlock  
\'o.O'		garlock.2@osu.edu
=(___)=		egarlock@acs.magnus.ohio-state.edu
  |U|  --Ack!!  garlock@cis.ohio-state.edu
 __________________________________________________
  Let not your ambitions destroy you... or me!
Newsgroups: comp.lang.modula2
From: johnh@macadam.mpce.mq.edu.au (John Haddy)
Subject: JPI Mod-2 for DOS
Organization: Macquarie University, Sydney
Date: Wed, 14 Oct 1992 05:42:58 GMT

I've finally gotten around to installing v3.02 on my machine. To test it out,
I tried recompiling an existing program.

Although this program is tiny (two modules), the result when I run the recompiled
code is a "stack overflow" (which never happened with the v2 compiled code). The
environment points to the very start of the initialisation code after the error.

Can anybody offer any suggestions? I believe that this code _ought_ to compile
properly with the compiler "straight out of the box", since it doesn't do
anything tricky (just displays some shapes in a VGA graphics screen).

John Haddy

----------------------------------------------------------------------------

      |  _  |_   _   |_|  _   _|  _|              Electronics Department
    |_| (_) | | | |  | | (_| (_| (_| \/           School of MPCE
    ---------------------------------/-           Macquarie University
                                                  Sydney, AUSTRALIA 2109

    Email: johnh@mpce.mq.edu.au, Ph: +61 2 805 8959, Fax: +61 2 805 8983

----------------------------------------------------------------------------
From: maurel@dbulm1.uucp
Newsgroups: comp.lang.modula2
Subject: Re: X and Motif bindings for Modual/Oberon ?
Date: 15 Oct 92 10:18:08 GMT
Organization: Daimler-Benz, Institut f. Informationstechnik

santiago@FGSSU1.FGS.SLB.COM (Ramon Santiago) writes:
> Hello,
> 
> 	I am looking for either Modula-2 or Oberon-2 bindings for X and
> Motif. Does anyone know where I can get these?
> 
Take contact with

  ModulaWare GmbH, 
  Wilhelmstr. 17A, 
  D-W 8520 Erlangen/F.R.Germany
  Tel. +49 (9131) 208395, 
  Fax +49 (9131) 28205.
  E-mail/Internet: 100023.2527@compuserve.com
                   g_dotzel@ame.nbg.sub.org
  
they have what you need

bye

guy maurel
Newsgroups: comp.lang.modula2
From: singg@alf.uib.no (Kurt George Gjerde)
Subject: Modula2 and X-windows
Organization: University of Bergen, Norway
Date: Sat, 10 Oct 92 12:46:40 GMT


X-windows <--> Modula-2
-----------------------

I've just started on a project (Modula-2) that includes
drawing lines (graphics) on screen (in a window).

The Modula-2 compiler we use can't do that. So I have
to write the graphic routines in C and link it with 
my M-2 program.

I guess I have to write C-routines for popping up a 
drawing-window and for drawing lines in that window.


Can anyone help me????

The modula-2 compiler is: EPC Modula-2 (you've probably
never heard of that one)

I can use the Xlib, Xt and Xm  C-libraries.


Please anyone...!!


Kurt.
From: Jon.Guthrie@p25.f2000.n106.z1.fidonet.org (Jon Guthrie)
Newsgroups: comp.lang.modula2
Subject: Modula-2 & Windows
Date: 9 Oct 92 08:35:21 GMT
Article-I.D.: puddle.8005.2ADA2D64
Organization: FidoNet node 1:106/2000.25 - COMM Port One, Sugar Land TX

stanjm02@cc.curtin.edu.au (1:105/42) writes to All:

 >Can anybody tell me if it is possible to write Windows programmes 
 >with modula-2? And if so, how to go about doing so?

Stony Brook's ships their Modula-2 compiler with three different versions.  (That is, for MS-DOS, OS/2, and Windows.)  While the MS-DOS and OS/2 versions have everything you need to produce code for those OSes, the Windows version requires WINAPI.DLL (or whatever it's called) and a resource compiler.  (Such things are available either in the Windows SDK or from any of the C compilers for Windows.)

I use this compiler for all my OS/2 programming, and I like it a lot.


--  
uucp: uunet!m2xenix!puddle!106!2000.25!Jon.Guthrie
Internet: Jon.Guthrie@p25.f2000.n106.z1.fidonet.org
From: iwm@doc.ic.ac.uk (Ian W Moor)
Newsgroups: comp.lang.modula2
Subject: Re: Structure parameter passing
Followup-To: comp.compilers
Date: 12 Oct 1992 18:48:34 +0100
Organization: Department of Computing, Imperial College, University of London, UK.
Distribution: world
NNTP-Posting-Host: swan.doc.ic.ac.uk


In article <5430@balrog.ctron.com>, smith@ctron.com (Larry Smith) writes:
|> The correct way
|> to implement this semantic is to always pass aggregate types as pointers and
|> to emit code at the begining of each routine to branch to the end, where
|> the compiler will be after noticing what parameters that were modified during
|> the compilation.  These parameters can be copied onto the stack and the
|> argument pointer adjusted, and the routine started with a backwards jump to
|> the real begining of the routine.  This allows one-pass compilation, removes
|> the necessity for aggregate copies where such copies are not needed to enforce
|> standard semantics.
|> 

Please don't do this! If you really object to keeping a representation of the
current procedure in memory so the code generator can generate the proper code,
do some back-patching, put the code in to copy the parameter and have
the compiler write NOPs over if is the parameter is unchanged. I'd rather
the compiler was slightly slower than have my cache/pipeline emptied by
jumping about whenever I call a procedure.

-- 
Ian W. Moor		+71 589 5111 x 5039
iwm@doc.ic.ac.uk   Department of Computing, Imperial College.            
"Experts from BNFL have advised the Russians to rename Chernobyl as Sellograd
 and open a tourist centre"
From: Yves.Auger@f116.n242.z1.fidonet.org (Yves Auger)
Newsgroups: comp.lang.modula2
Subject: Modula-2 in french
Date: 8 Oct 92 07:13:50 GMT
Article-I.D.: puddle.7201.2AD5FF13
Organization: FidoNet node 1:242/116 - Micro-Plus, St-Jerome PQ

Dans un message le <Oct 06 11:01>, Narti Kitiyakara de 1:396/1 ecrivait:

 NK>  I wouldn't get your hopes up too much.  I can ask them, if you
 NK>  like.

It would be a great help since we intend to change our teaching language. Actually we use basic but we received a little formation in modula-2 and all documentation was in english (Top Speed Modula-2).

 NK>      The compiler itself is fairly good.  There are a few bugs, 

Anyway, I am sure that I never saw those bugs.

                                                    ... I couldn't
 NK>  comment on its sutability as a teaching tool.

It seems to me that the approach of computer science will be well served with Modula-2. I am very new in Modula but it attract me enough to try it in my classroom.

If you also know some references (books) in french talking about Modula, I am interested.

Yves Auger.


--  
uucp: uunet!m2xenix!puddle!242!116!Yves.Auger
Internet: Yves.Auger@f116.n242.z1.fidonet.org
Newsgroups: comp.lang.modula2
From: ulrich@mips.complang.tuwien.ac.at (Ulrich Neumerkel)
Subject: Re: Oberon-2, WITH-Statement, problem (resolved)
Keywords: WITH, Oberon-2, DECoberon
Reply-To: ulrich@mips.complang.tuwien.ac.at
Organization: Technische Universitaet Wien, Institut fuer Computersprachen
Date: Thu, 8 Oct 1992 15:10:40 GMT


First of all, let me thank to Regis Crelier and Erwin Ewald Oertli
for resolving my misunderstanding.  Neither is it a bug, nor has it
to do with open arrays.  To put it into a nutshell, the procedure
P2 below is correct, while P1 is not.  This is the case although they
seem (at the first glance) to be equivalent.  Within the
WITH-statement in the procedure P1, P1 is declared as

	P1(t:TP,u:T)

and not as

	P1(t,u:T).

Thank You again,
	Ulrich




MODULE StatementWITHagain;
TYPE
	T = POINTER TO TX;
	TX = RECORD END;
	TP = POINTER TO TPX;
	TPX = RECORD(TX) END;

PROCEDURE ^P1(t,u:T);

PROCEDURE P2(t,u:T);
BEGIN
	WITH t: TP DO P1(u,NIL) END (*  this is correct *)
END P2;

PROCEDURE P1(t,u:T);
BEGIN
	WITH t: TP DO P1(u, (* error: incompatible assignment *) NIL ) END
END P1;
END StatementWITHagain.
-- 
Ulrich Neumerkel, ulrich@dec4.wu-wien.ac.at ulrich@mips.complang.tuwien.ac.at
TU-Wien, Vienna University of Technology, +431 58801 4477 fax +431 5057838
Institut fuer Computersprachen E185/1 Argentinierstr.8/4, A-1040 Wien Austria
Newsgroups: comp.lang.modula2,comp.lang.modula3
From: pwilliam@nyx.cs.du.edu (PJ Williams)
Subject: Re: Modula Usage in CS1?
Organization: University of Denver, Dept. of Math & Comp. Sci.
Date: Fri, 16 Oct 92 04:29:47 GMT

reid@ss6.cps.msu.edu (Dr Richard J. Reid) writes:


>Among the 253 schools that have responded to our survey, the
>following have indicated they are using

>Modula2

>in their CS1 course.

>Do you know of any additions or corrections?

>Thanks,

>Dick

University of Wollongong, Australia (Modula-2 for both first year courses)

Peter Williams (pwilliam@nyx.cs.du.edu)
Computer Engineering undergraduate - University of Wollongong
( Standard disclaimer - "This is MINE, ALL MINE !!" [ get the idea ?] )









>Laurentian University, Sudbury, Ontario
From: ci567@cleveland.Freenet.Edu (Scott M. Kriefall)
Newsgroups: comp.lang.modula2
Subject: FST 3.0 problem...
Date: 9 Oct 1992 05:29:43 GMT
Organization: Case Western Reserve University, Cleveland, Ohio (USA)
NNTP-Posting-Host: hela.ins.cwru.edu


Has anyone else here FTPed FST Modula-2 3.0 from ftp.psg.com?  
I got this file earlier today, and have found a problem.  The 
included M2LINK always gives the following error message when 
invoked normally:
 
---incompatible module
 at file position 000B
 
The only way to avoid this message and link the file is to 
include the /k switch as in the following:  M2LINK sieve /o /k  
(the /k switch disables module version checking).  It's not 
supposed to work this way...  Anyone know why this is occuring 
or how (if possible) to fix this?
Xref: sparky comp.lang.modula2:1248 comp.lang.modula3:957
From: sorensen@bcsaic.boeing.com (Paul Sorensen)
Newsgroups: comp.lang.modula2,comp.lang.modula3
Subject: Philosophy, audience of Oberon and Modula3 ?
Keywords: Oberon Modula3 Programming Languages
Date: 10 Oct 92 22:37:32 GMT
Expires: 1 Nov 92 08:00:00 GMT
Organization: Boeing Computer Services, Seattle

Recently, I've found some time so look around at less
mainstream programming languages -- and having heard
good and interesting tidbits about Oberon and Modula3 --
I'd like to ask for a summary of the philosphy,
and audience for Oberon and Modula3.  Also a brief
comparison (if that's a reasonable thing to ask for)
of the two would be quite helpful.

Thanks, sorensen@atc.boeing.com
Newsgroups: comp.lang.modula2
From: randy@psg.com (Randy Bush)
Subject: Re: FST 3.0 DOS compiler ftpable
Organization: Pacific Systems Group, Portland Oregon, US
Date: Fri, 9 Oct 1992 05:34:52 GMT

randy@psg.com (Randy Bush) writes:
> Thanks to Roger Carvalho, FST 3.0 is available
>    ftp.psg.com:~/pub/modula-2/pc/fst30.lzh
>    1:105/6 FST30.LZH

Unfortunately, the .DEFs had somehow been touched between compile and ship of
the shareware version.  I.e. a mess to get it working.

We are fixing this now.  Expect these files to be replaced in a day or two.

Sorry.

randy
-- 
randy@psg.com   ...!uunet!m2xenix!randy
From: scalawag@carson.u.washington.edu (Keith Frederick)
Subject: Clarion TopSpeed Modula-2 For Sale
Organization: University of Washington, Seattle
Distribution: usa
Date: Fri, 16 Oct 1992 05:26:46 GMT

I have the TopSpeed environment, Modula-2 compiler v3.01, and
TopSpeed DOS Extender for sale: $125 (this includes shipping).
Disks are 5.25"  All software and manuals are originals.

Leave mail if you have any questions.

 ________________________________________________________________________
|                                  |                                     |
| Keith R. Frederick               | Happiness is our moral purpose.     |
| (206)285-1576                    | If you see Dr. Fu Manchu, Kill Him! | 
| scalawag@carson.u.washington.edu | Reason is our only absolute.        |
| I'm not a number, I'm a free man!|-------------------------------------|
| CIS: 73760,3521  UWID: 8722277   | :::  Looking for a grad school  ::: |
|__________________________________|_____________________________________|
From: pronk@dutiws.tudelft.nl (C.Pronk.TI-tel-1803)
Newsgroups: comp.lang.modula2
Subject: Re: Modula Usage in CS1?
Date: 15 Oct 92 07:41:30 GMT
Organization: T W I, Delft University of Technology

In article <8702.2ADCD37F@puddle.fidonet.org> William.Burrow@p202.f3.n255.z1.fidonet.org (William Burrow) writes:
>
Add: Delft University of Technology, The Netherlands

Kees Pronk



Newsgroups: comp.lang.modula2
From: borchert@titania.mathematik.uni-ulm.de (Andreas Borchert)
Subject: Re: Parallel reading of a single file...help
Organization: University of Ulm, SAI
Date: Fri, 16 Oct 92 08:55:10 GMT

In article <9210141424.AA16896@dinghy.cis.ohio-state.edu>, garlock@news.cis.ohio-state.edu (erin jon garlock) writes:
> 
> Is there anyway I can parallel read a single file.  What I see is something
> like the following:
> 
> VAR
>     afile, bfile: FILE;
> . 
> . 
> Open(afile, 'generic',textMode,readOnly,ok);
> bfile := afile;
> ReadString(afile,string,ok);
> ReadLn(afile,ok);
> 
> Am I right to assume that afile is now on the second line of 'generic' and
> bfile is still at the current first line??

I don't know which library you are using but if FILE is a pointer type,
bfile is just another name for afile, so bfile would access the second line
next.

> If this incorrect, how can I do this...

Usually, it should be possible to open a file twice (at least if
both file openings are done read-only).

-- 
_______________________________________________________________________________

Andreas Borchert, University of Ulm, SAI, D-W-7900 Ulm, Germany
Internet: borchert@mathematik.uni-ulm.de
Newsgroups: comp.lang.modula2
From: eepjm@wombat.newcastle.edu.au (Peter Moylan)
Subject: Re: multiple implementations
Organization: University of Newcastle, AUSTRALIA
Date: Wed, 14 Oct 1992 01:56:16 GMT

In article <1992Oct12.200703.11026@rchland.ibm.com>, seurer@rchland.vnet.ibm.com (Bill Seurer) writes:
> In article <718850232snx@black.demon.co.uk>, tchannon@black.demon.co.uk (Tim Channon) writes:
> |> > Does anyone know of any good techniques for managing multiple implementation
> |> > modules?  A trivial example is for a Stack to have an array implementation
> |> > and a linked list implementation.   How do you name your files and how do
> |> 
> |> Pragmas?
> |> 
> |>   TC. 
> |>     E-mail: tchannon@black.demon.co.uk or tchannon@cix.compulink.co.uk
> |>                                 
> 
> Nah, you can do it with straight Modula-2 and a bit of indirection.  I
> wrote an IBM technical report on this but I don't know if they are
> available externally.
> 
> [Details omitted]

The answer to the original question, though, depends very much on the
environment supplied with the compiler.  The obvious solution is
to have three files:
    STACK.DEF
              starts with "DEFINITION MODULE Stack;"
    STACK1.MOD
              starts with "IMPLEMENTATION MODULE Stack;"
    STACK2.MOD
              starts with "IMPLEMENTATION MODULE Stack;"

In principle, whichever of STACK1.MOD and STACK2.MOD was last compiled
will be the one used in your executable.  It's then just a question
of organising your directories, etc. in a convenient way, and perhaps
setting up batch files of commands to select one or the other model.
(This is not a complete solution, but it's a start.)  I've used this
approach successfully in the past.

Now that I've started using TopSpeed M2, the whole structure collapses,
for two reasons:
 (a) the TopSpeed system often recompiles files even when you don't
     want it to, which can be a damned nuisance at times (especially
     when you've accidentally changed a low-level definition module
     by a mistake in using the "press any key to continue", and then
     deleted the erroneous character).  If there are multiple
     implementation modules in the search path it will find them all,
     and report this as an error even when it's not.
 (b) the TopSpeed system won't even accept the file names I used above,
     since it requires a match between the source file name and the module
     name (rather than the more logical approach of requiring a match
     between the module name and the symbol file name).

These problems occur because the TS project system tries to use the
same "make" strategy for Modula-2 and for C/C++ (which were never
intended for use in modular programming, and which therefore present
special problems in version checking).  They should not occur in a
system which was designed specifically for Modula-2.

-- 
Peter Moylan                      eepjm@wombat.newcastle.edu.au
From: tchannon@black.demon.co.uk (Tim Channon)
Newsgroups: comp.lang.modula2
Subject: Re: JPI Mod-2 for DOS
Date: 16 Oct 92 00:52:59 GMT
Organization: null
ReplyTo: tchannon@black.demon.co.uk
X-Mailer: cppnews $Revision: 1.18 $

> Can anybody offer any suggestions? I believe that this code _ought_ to compile
> properly with the compiler "straight out of the box", since it doesn't do
> anything tricky (just displays some shapes in a VGA graphics screen).
> 

When I moved from V2 to V3.00 the new compiler found a number of obscure but 
genuine errors. At first I blaimed the compiler... 

  TC. 
    E-mail: tchannon@black.demon.co.uk or tchannon@cix.compulink.co.uk
From: engelsma@golden.cps.msu.edu (Jonathan Engelsma (Reid))
Newsgroups: comp.lang.modula2
Subject: Free Modula2 on Sun or NeXT
Date: 13 Oct 92 01:24:17 GMT
Organization: Dept. of Computer Science, Michigan State University

Anybody aware of a public domain Modula2 compiler which will
run on a Sun or a NeXT?

Thanks.
-------------------------------------------------------------------------
Jonathan R. Engelsma                            Michigan State University
                                                     Department of
E-mail:   engelsma@cps.msu.edu                     Computer Science
	  uunet!frith!engelsma	
	  uunet!frith!jresys!engelsma (home)	
-------------------------------------------------------------------------