Replies: 5 comments 15 replies
-
Another great resource - IMHO - for a Modula-3 noob: |
Beta Was this translation helpful? Give feedback.
-
In the book there is an example:
There does not appear to be any m3makefile used! |
Beta Was this translation helpful? Give feedback.
-
On 2/24/23 22:19, Duke Normandin wrote:
In the book there is an example:
|MODULE Hello EXPORTS Main; IMPORT SIO; BEGIN SIO.PutText("Hello, world!\n") END Hello. |
There does not appear to be any m3makefile used!
If there is no file named m3makefile in your src directory,
CM3 will try to infer what to do, just from what files it
finds in there. I haven't tried to provoke this to see
just how far it will work, but I'm very sure it will work
fine if all you have are same-named interface/module pairs
and one module named Main, or probably, one module named
something else but that exports Main.
Stuff like instantiations might be doubtful, and maybe modules
that export >1 interface. Definitely not importing interfaces
that are neither in src nor in the standard precompiled libraries
libm3 or libm3core.
For anything very big, even if simple, I usually provide an
m3makefile. The one place I have seen unexpected trouble without
one is if there are leftover .i3 or .m3 files in src that I didn't
want to be part of what is compiled.
… There does not seem to be a Main.m3 file!
What implementation of m3 are they using?
Can this code also be run with cm3, after changing SIO to IO?
—
Reply to this email directly, view it on GitHub <#806 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABSVZNE3ULN7AGEFUE37TLLWZGB6FANCNFSM5LD6JG5Q>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
On 2/25/23 07:01, Duke Normandin wrote:
Those books are way too expensive for a niche language that is almost dead. Sad but true.
The text of the green book was recently made available on line,
after getting the copyright owner(s) consent.
I don't have the URL in front of me, but probably someone here
can help immediately, or I can look for it.
If you really want paper, I have a few copies too.
… At any rate, how would I go about compiling this exact code with CM3?
|MODULE HelloWorld EXPORTS Main; IMPORT IO; BEGIN IO.Put("Hello World\n") END HelloWorld. |
HelloWorld.m3 only?
—
Reply to this email directly, view it on GitHub <#806 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABSVZNHW2G6UO23NASKOH3DWZH7CZANCNFSM5LD6JG5Q>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
On 25 Feb 2023, at 23:02, Duke Normandin wrote:
Can't find it!
…
--
Reply to this email directly or view it on GitHub:
#806 (reply in thread)
You are receiving this because you are subscribed to this thread.
Message ID: ***@***.***>
--
Olaf Wagner -- elego Software Solutions GmbH -- http://www.elegosoft.com
Gustav-Meyer-Allee 25 / Gebäude 12, 13355 Berlin, Germany
Geschäftsführer: Olaf Wagner | Sitz: Berlin
Handelregister: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
"Programming in Modula-3 - An Introduction in Programming with Style"
by Böszörményi & Weich
This book is my first ever formal intro to CS.
I bought my first computer in 1981 - an Apple ][e clone from Taiwan, sporting a z80 cpu as well as the 6502. I learned enough z80 assembly to be dangerous. :) From Byte magazine I think.
Next learned Perl4 because I wanted to crank out my own intranet with a database backend. Got a modem and started "gophering" for resources. Fidonet came in handy.
learned some C; learned some Lisp (newLisp, scheme); tried Oberon Native; like Ulm's Oberon-2 compiler - yet never with any formal training.
Now, here I am digging into Modula-3. The above book is great so far. I would have liked to find Harbison's book to read online somewhere. No chancey!
Looking forward to groking CM3!
Beta Was this translation helpful? Give feedback.
All reactions