Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Bartc <bc@freeuk.com> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: primitive instruction for programming |
| Date | 2015-04-21 00:17 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <mh41cs$v9b$1@dont-email.me> (permalink) |
| References | (3 earlier) <mgg2d9$h3s$1@dont-email.me> <9b29d6a6-ce3e-427a-b195-3e27e02c2aab@googlegroups.com> <mggbmn$i3b$1@dont-email.me> <ba8f2a5d-9d51-4ec1-9901-47c504c601f5@googlegroups.com> <46ee06ca-dfe6-41ef-86d0-2bf1e27f9e84@googlegroups.com> |
On 20/04/2015 23:12, Emiliano Gomes Padilha wrote: > >> ret = _next >> p1= a, p2= b, p3= c >> goto _func; >> _next: ... >> >> _func: ...use params p1, p2, p3 >> .....(of course, each nested call here should use a different ret) >> .....at end of function: >> goto ret; >> >> >> Emiliano. > > Complementing, that'll be a powerful NewBasic. And ultra-simple, too, > thus EVERYONE shall be able to program then. Your example won't work in standard C (as you can't take addresses of labels). Also you've omitted the considerable work needed to implement recursive calls and to handle results. (And all formal parameter names would either all need to exist simultaneously in the same name-space, or even more work is needed to call a function.) This might work for auto-generated code which no-one has to look at *if* there is no proper way of implement function calls, but not for normal programming. Certainly not 'everyone'. I don't see how 'ultra-simple' can be applied to it considering how much effort is needed to implement x=f(a,b,c) instead of just writing x=f(a,b,c). Ultra-primitive perhaps... -- Bartc
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: primitive instruction for programming Emiliano Gomes Padilha <egpadilha@gmail.com> - 2015-04-20 14:27 -0700
Re: primitive instruction for programming Emiliano Gomes Padilha <egpadilha@gmail.com> - 2015-04-20 15:12 -0700
Re: primitive instruction for programming Bartc <bc@freeuk.com> - 2015-04-21 00:17 +0100
Re: primitive instruction for programming Emiliano Gomes Padilha <egpadilha@gmail.com> - 2015-04-22 11:07 -0700
Re: primitive instruction for programming David Brown <david.brown@hesbynett.no> - 2015-04-21 09:04 +0200
Re: primitive instruction for programming Robert Wessel <robertwessel2@yahoo.com> - 2015-04-21 03:02 -0500
Re: primitive instruction for programming asetofsymbols@gmail.com - 2015-04-21 01:34 -0700
Re: primitive instruction for programming David Brown <david.brown@hesbynett.no> - 2015-04-21 11:34 +0200
Re: primitive instruction for programming Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-04-21 11:48 +0100
Re: primitive instruction for programming David Brown <david.brown@hesbynett.no> - 2015-04-21 13:10 +0200
Re: primitive instruction for programming Bartc <bc@freeuk.com> - 2015-04-21 10:53 +0100
csiph-web