Re (3): [Oberon] OFS aliases not being initialized
Is there a "lint" utility or syntax checker?
No. In Oberon.Text, make System.Time or DayTime.SetClock the last of the InitCommands. Eg. InitCommands = { ... { System.Time } } or InitCommands = { ... { DayTime.SetClock "10.4.0.1" } } If the result doesn't appear in the System.Log you've narrowed the problem. You can expand this strategy. In my Oberon.Text, System3.Tool is last in FinderTemplates. If you use Gadgets you can check whether that definition worked. More important, edit carefully. Pay close attention to matching { and } correctly. There are many non-obvious details of usage to discover or learn. Regards, ... Peter E. -- VoIP 7785886232 is being cancelled. Please use 13604502132. Sparcstation 2 netboots netbsd; SCSI disks are being arranged. Personal site works; http://members.shaw.ca/peasthope/ .
On Fri, 13 Aug 2010, peasthope@shaw.ca wrote:
Is there a "lint" utility or syntax checker?
No.
That's clear enough! ;)
In Oberon.Text, make System.Time or DayTime.SetClock the last of the InitCommands. Eg. InitCommands = { ... { System.Time } } or InitCommands = { ... { DayTime.SetClock "10.4.0.1" } } If the result doesn't appear in the System.Log you've narrowed the problem. You can expand this strategy. In my Oberon.Text, System3.Tool is last in FinderTemplates. If you use Gadgets you can check whether that definition worked.
Good Plan! I've used similar techniques (print statements) when debugging Perl and PHP CGI scripts - for one. I should have thought of for this situation.
More important, edit carefully. Pay close attention to matching { and } correctly.
I have to see if the PET matches braces, etc.
There are many non-obvious details of usage to discover or learn.
As usually is the case. I remember when I first learned Unix! Oh wait... how about in 1980 when I first bought my Taiwanese Apple ][e clone, enhanced with a Z80 CPU no less. I fiddled around 'till I "got it"! FidoNet helped.. Thanks for the debug strategy! L8r... -- Duke
It turns out that Randy Bush was very involved in both Modula-2 and FidoNet. On Fri, Aug 13, 2010 at 9:50 PM, Duke Normandin <dukeofperl@ml1.net> wrote:
On Fri, 13 Aug 2010, peasthope@shaw.ca wrote:
Is there a "lint" utility or syntax checker?
No.
That's clear enough! ;)
In Oberon.Text, make System.Time or DayTime.SetClock the last of the InitCommands. Eg. InitCommands = { ... { System.Time } } or InitCommands = { ... { DayTime.SetClock "10.4.0.1" } } If the result doesn't appear in the System.Log you've narrowed the problem. You can expand this strategy. In my Oberon.Text, System3.Tool is last in FinderTemplates. If you use Gadgets you can check whether that definition worked.
Good Plan! I've used similar techniques (print statements) when debugging Perl and PHP CGI scripts - for one. I should have thought of for this situation.
More important, edit carefully. Pay close attention to matching { and } correctly.
I have to see if the PET matches braces, etc.
There are many non-obvious details of usage to discover or learn.
As usually is the case. I remember when I first learned Unix! Oh wait... how about in 1980 when I first bought my Taiwanese Apple ][e clone, enhanced with a Z80 CPU no less. I fiddled around 'till I "got it"! FidoNet helped..
Thanks for the debug strategy! L8r...
-- Duke -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
-- -- Aubrey McIntosh, Ph.D. 1502 Devon Circle Austin TX 78723-1814 http://home.grandecom.net/~amcintosh/aubrey/Search/
On Sat, 14 Aug 2010, Aubrey.McIntosh@Alumni.UTexas.Net wrote:
As usually is the case. I remember when I first learned Unix! Oh wait... how about in 1980 when I first bought my Taiwanese Apple ][e clone, enhanced with a Z80 CPU no less. I fiddled around 'till I "got it"! FidoNet helped..
Thanks for the debug strategy! L8r...
It turns out that Randy Bush was very involved in both Modula-2 and FidoNet.
And who is Randy Bush again? -- Duke
On Sat, Aug 14, 2010 at 9:19 AM, Duke Normandin <dukeofperl@ml1.net> wrote:
On Sat, 14 Aug 2010, Aubrey.McIntosh@Alumni.UTexas.Net wrote:
It turns out that Randy Bush was very involved in both Modula-2 and FidoNet.
And who is Randy Bush again? --
Randy was involved in the Modula-2 standardization effort, and is apparently the author of the first FidoNet specification document. Many of the readers here were involved with Modula-2 in an earlier epoch.
Duke
-- -- Aubrey McIntosh, Ph.D. 1502 Devon Circle Austin TX 78723-1814 http://home.grandecom.net/~amcintosh/aubrey/Search/
On Sat, 14 Aug 2010, Aubrey.McIntosh@Alumni.UTexas.Net wrote:
On Sat, Aug 14, 2010 at 9:19 AM, Duke Normandin <dukeofperl@ml1.net> wrote:
On Sat, 14 Aug 2010, Aubrey.McIntosh@Alumni.UTexas.Net wrote:
It turns out that Randy Bush was very involved in both Modula-2 and FidoNet.
And who is Randy Bush again? --
Randy was involved in the Modula-2 standardization effort, and is apparently the author of the first FidoNet specification document. Many of the readers here were involved with Modula-2 in an earlier epoch.
I see! I remember fooling around with Modula in the '80s - I _think_ on my Apple. It couldn't have been my next machine - an Epson QX-16 running CP/M and the Forth-based proprietary VALDOCS system on a 8080 compatible NEC chip. I don't think the Epson machine was blessed with something as useful as a Modula compiler. ;) Or it have have been on my _next_ machine - an 8086 - that I first tinkered with Turbo Pascal and Modula. Who knows.. ;) But bless Randy "and the boys" for FidoNet and BBS!! -- Duke
On Fri, 13 Aug 2010, peasthope@shaw.ca wrote:
Is there a "lint" utility or syntax checker?
No.
In Oberon.Text, make System.Time or DayTime.SetClock the last of the InitCommands. Eg. InitCommands = { ... { System.Time } } or InitCommands = { ... { DayTime.SetClock "10.4.0.1" } } If the result doesn't appear in the System.Log you've narrowed the problem.
I must be missing the point of this strategy! I did the above, and the time printed out correctly in the System.Log. So is the strategy to progressively move System.Time down the file until the time doesn't appear anymore in the System.Log? I'm not sure whether or not it's allowed to issue commands other than in the InitCommands section? -- Duke
participants (3)
-
Aubrey.McIntosh@Alumni.UTexas.Net -
Duke Normandin -
peasthope@shaw.ca