Search found 59 matches

by DGDanforth
Tue Mar 12, 2019 10:00 am
Forum: Component Pascal
Topic: Zero
Replies: 6
Views: 9184

Re: Zero

k := 2147483647; (*secretly *) a[k] := 42; Assuming range checking was on, the programmer would be immediately alerted when he ran the program that he had made a mistake. I like that. IIRC It corresponds to Edsger W. Dijkstra rule of fail as soon as possible. So I withdraw my desire for the initial...
by DGDanforth
Mon Mar 11, 2019 10:31 am
Forum: Component Pascal
Topic: Zero
Replies: 6
Views: 9184

Re: Zero

There's currently a discussion on this topic in the ETH Oberon mailing list: Should one automatically initialize local pointer or procedure variables (safety precaution)? http://lists.inf.ethz.ch/pipermail/oberon/2019/013120.html Interesting. I had not considered procedure variables but they also w...
by DGDanforth
Fri Mar 08, 2019 1:50 am
Forum: Component Pascal
Topic: Zero
Replies: 6
Views: 9184

Zero

I programmed for 14 years in a language called MAINSAIL (Machine Independent SAIL) SAIL = Stanford AI Language. One nice feature I miss is the concept Zero. Every datatype had its value for Zero, for example: REAL 0.0, INTEGER 0, BOOLEAN FALSE, ... All local variables were guaranteed to be initializ...
by DGDanforth
Thu Dec 27, 2018 1:05 am
Forum: BlackBox Framework
Topic: Caret at compiler error mark
Replies: 3
Views: 6246

Re: Caret at compiler error mark

My error!
I am not sure why I thought that.
Perhaps it was a function of the compiler tool I was using.
Sorry
by DGDanforth
Wed Dec 26, 2018 9:50 am
Forum: BlackBox Framework
Topic: Caret at compiler error mark
Replies: 3
Views: 6246

Caret at compiler error mark

I find it annoying that the caret is not placed at the first error mark generated by the compiler.
It would be nice to just hit the backspace key or left arrow key and make the correction rather than having to mouse
over to the point.

Does anyone else feel this way?

Doug Danforth
by DGDanforth
Wed Nov 21, 2018 8:54 am
Forum: Common questions
Topic: CommStreams
Replies: 19
Views: 18305

Re: CommStreams

Ivan Denisov wrote: I got Josef's example to work viewtopic.php?f=32&t=208#p1370
by DGDanforth
Wed Nov 21, 2018 8:51 am
Forum: Common questions
Topic: CommStreams
Replies: 19
Views: 18305

Re: CommStreams

If there are any problems with downloading, it may be required to look into the responses provided by the http server directly. I don't know if this is possible with Ivan's program. My example supports redirects and chunked answers. Also support callbacks, what to do with downloaded data. Снимок эк...
by DGDanforth
Wed Nov 21, 2018 12:07 am
Forum: Common questions
Topic: CommStreams
Replies: 19
Views: 18305

Re: CommStreams

If there are any problems with downloading, it may be required to look into the responses provided by the http server directly. I don't know if this is possible with Ivan's program. If it is not possible you can use the sample program I have posted earlier in this topic. I don't see your program on...
by DGDanforth
Tue Nov 20, 2018 2:08 am
Forum: Common questions
Topic: CommStreams
Replies: 19
Views: 18305

Re: CommStreams

I am not having much luck in reading bytes from a web site. I get no errors but the number of bytes returned is zero. How do I read bytes from "google.com"? (s: Stream) ReadBytes (VAR x: ARRAY OF BYTE; beg, len: INTEGER; OUT read: INTEGER), NEW, ABSTRACT; s.ReadBytes(x, 0, len, read); CONS...
by DGDanforth
Mon Nov 19, 2018 7:16 am
Forum: Common questions
Topic: CommStreams
Replies: 19
Views: 18305

Re: CommStreams

I ran Chris' program and it worked!

Ah, ha! I found I had in my code an extra space after :80

I couldn't see it. For what its worth I will be having
cataract surgery in a couple of months since edges
of fill-in fields are starting to disappear and commas and
periods look alike.

Doug