Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #100531
| From | Ben Bacarisse <ben.usenet@bsb.me.uk> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: Pine 64 |
| Followup-To | comp.programming |
| Date | 2016-12-29 17:03 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <87k2aid5wl.fsf@bsb.me.uk> (permalink) |
| References | (2 earlier) <o4190s$uhv$1@dont-email.me> <3685c981-98dc-413b-9efb-c3ecebc1bbf8@googlegroups.com> <o42v3d$irl$1@dont-email.me> <8760m2erxn.fsf@bsb.me.uk> <cb293d76-c2c8-450b-9a41-a88a0b217266@googlegroups.com> |
Followups directed to: comp.programming
Note: I've set Followup-To: comp.programming because you never know...
Malcolm McLean <malcolm.mclean5@btinternet.com> writes:
> On Thursday, December 29, 2016 at 2:22:19 PM UTC, Ben Bacarisse wrote:
<snip>
>> For example MCPL, derived from BCPL, is the result of about 5 decades of
>> experience
<snip>
> MCPL looks like its worth a look.
>
> "It is designed to be easy to learn and use, and easy to combine
> with C programs. Its simplicity results from its typelessness
> causing all expressions to yield values of the natural word size
> used in the implementation. This is usually 32 bits, but
> on some machines a 64-bit word length could be used. Even though
> the language is typeless, convenient access to packed 8-bit
> characters is provided."
>
> It's got most of the essentials of B64, except the 64.
It works with 64-bit words so "MCPL with 64-bit words" could be your
starting point.
> This is hard to forgive however.
>
> GET "mcpl.h"
> FUN start
> : => writef "Enter three lengths: "
> LET a=readn(), b=readn(), c=readn()
> writef("\nTriangle entered: %d %d %d", a, b, c)
> writef("\nThis is %s triangle\n",
> sort_of_triangle(a,b,c))
> .
> FUN sort_of_triangle
> : a, b(<a), c => sort_of_triangle(b, a, c)
> : a, b, c(<b) => sort_of_triangle(a, c, b)
> // At this point we know that a <= b <= c
> : a, b, >a+b => "not a"
> : a, ?, =a => "an equalateral"
> : a, =a, ? => "an isosceles"
> : ?, =c, c => "an isosceles"
> : a, b, c => c*c=a*a+b*b -> "a right angled",
> "a scalene"
>
> We need #include and curly braces to make it look a bit like C.
> And return statements.
Who's "we"? I don't need #include, and MCPL has curly braces and return
statements.
--
Ben.
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Pine 64 jacobnavia <jacob@jacob.remcomp.fr> - 2016-12-27 23:44 +0100
Re: Pine 64 raltbos@xs4all.nl (Richard Bos) - 2016-12-27 22:54 +0000
Re: Pine 64 jacobnavia <jacob@jacob.remcomp.fr> - 2016-12-28 00:41 +0100
Re: Pine 64 raltbos@xs4all.nl (Richard Bos) - 2016-12-28 12:14 +0000
Re: Pine 64 David Brown <david.brown@hesbynett.no> - 2016-12-28 13:39 +0100
Re: Pine 64 raltbos@xs4all.nl (Richard Bos) - 2016-12-28 12:45 +0000
Re: Pine 64 David Brown <david.brown@hesbynett.no> - 2016-12-28 14:02 +0100
Re: Pine 64 Keith Thompson <kst-u@mib.org> - 2016-12-28 10:11 -0800
Re: Pine 64 Malcolm McLean <malcolm.mclean5@btinternet.com> - 2016-12-28 10:50 -0800
Re: Pine 64 jacobnavia <jacob@jacob.remcomp.fr> - 2016-12-28 22:55 +0100
Re: Pine 64 David Brown <david.brown@hesbynett.no> - 2016-12-29 12:21 +0100
Re: Pine 64 jacobnavia <jacob@jacob.remcomp.fr> - 2016-12-29 21:38 +0100
Re: Pine 64 David Brown <david.brown@hesbynett.no> - 2016-12-30 10:10 +0100
Re: Pine 64 David Brown <david.brown@hesbynett.no> - 2016-12-28 21:53 +0100
Re: Pine 64 raltbos@xs4all.nl (Richard Bos) - 2016-12-28 19:54 +0000
Re: Pine 64 Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2016-12-27 18:03 -0500
Re: Pine 64 jacobnavia <jacob@jacob.remcomp.fr> - 2016-12-28 00:36 +0100
Re: Pine 64 Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2016-12-27 18:44 -0500
Re: Pine 64 jacobnavia <jacob@jacob.remcomp.fr> - 2016-12-28 00:54 +0100
Re: Pine 64 Noob <root@127.0.0.1> - 2016-12-28 11:27 +0100
Re: Pine 64 jacobnavia <jacob@jacob.remcomp.fr> - 2016-12-28 12:10 +0100
Re: Pine 64 Noob <root@127.0.0.1> - 2016-12-28 12:59 +0100
Re: Pine 64 Malcolm McLean <malcolm.mclean5@btinternet.com> - 2016-12-28 10:10 -0800
Re: Pine 64 supercat@casperkitty.com - 2016-12-29 08:30 -0800
Re: Pine 64 David Brown <david.brown@hesbynett.no> - 2016-12-29 13:22 +0100
Re: Pine 64 Malcolm McLean <malcolm.mclean5@btinternet.com> - 2016-12-29 07:47 -0800
Re: Pine 64 Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-12-29 17:03 +0000
Re: Pine 64 Malcolm McLean <malcolm.mclean5@btinternet.com> - 2016-12-29 04:50 -0800
Re: Pine 64 Reinhardt Behm <rbehm@hushmail.com> - 2016-12-29 21:25 +0800
Re: Pine 64 Keith Thompson <kst-u@mib.org> - 2016-12-29 09:28 -0800
Re: Pine 64 Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-12-29 14:22 +0000
Re: Pine 64 David Brown <david.brown@hesbynett.no> - 2016-12-29 13:28 +0100
Re: Pine 64 Malcolm McLean <malcolm.mclean5@btinternet.com> - 2016-12-28 14:12 -0800
Re: Pine 64 BartC <bc@freeuk.com> - 2016-12-28 22:23 +0000
Re: Pine 64 Gareth Owen <gwowen@gmail.com> - 2016-12-29 18:43 +0000
Re: Pine 64 David Brown <david.brown@hesbynett.no> - 2016-12-28 21:59 +0100
Re: Pine 64 jacobnavia <jacob@jacob.remcomp.fr> - 2016-12-28 23:43 +0100
Re: Pine 64 jt@toerring.de (Jens Thoms Toerring) - 2016-12-28 22:56 +0000
Re: Pine 64 Malcolm McLean <malcolm.mclean5@btinternet.com> - 2016-12-28 16:00 -0800
Re: A programming language called 'B64' Noob <root@127.0.0.1> - 2016-12-30 16:08 +0100
csiph-web