Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #41885
| From | anton@mips.complang.tuwien.ac.at (Anton Ertl) |
|---|---|
| Newsgroups | comp.lang.forth |
| Subject | structs/unions/records (was: Could Forth be getting a bit of traction?) |
| Date | 2015-09-09 07:10 +0000 |
| Organization | Institut fuer Computersprachen, Technische Universitaet Wien |
| Message-ID | <2015Sep9.091055@mips.complang.tuwien.ac.at> (permalink) |
| References | (3 earlier) <52bb77a4-a943-4d1b-a8a2-26a12d38f95a@googlegroups.com> <6a423e09-f98a-4891-9816-39b4ca33365b@googlegroups.com> <aee1940a-1660-4476-959a-0ebf68d21134@googlegroups.com> <da26bc07-688b-4107-821f-ec06254c2a8b@googlegroups.com> <62e1ded5-1982-4887-95e5-113c5f47eee1@googlegroups.com> |
mhx@iae.nl writes:
>On Sunday, September 6, 2015 at 6:39:57 PM UTC+2, Greg wrote:
>> But then my question
>> is, what would you use instead of say C structures/unions
>> (or records in Pascal) which to me seem essential?
>
>Which immediate computing problem do *you personally*
>have that needs generalized structures/unions/records
>(*not* somebody else's problem or the one from the
>C/Pascal cookbooks)?
Needs? I have found that fields along the lines of
: tree-left ( tree -- addr )
<offset> + ;
useful many times, and we have finally standardized them in
Forth-2012. Differences in wordsets for defining such fields (e.g.,
the standard wordset and
<http://www.complang.tuwien.ac.at/forth/struct.fs> are less due to
different needs, rather than preferences in programming.
>There are cases where *something like*
>s/u/r naturally follows from the problem, but where
>Forth allows one to implement it in a way that is not
>normally recognized as a structure.
A classical way is to write, say CELL+ instead of TREE-RIGHT, or
somesuch. I find code that uses that approach hard to read, because I
have to know what is on the stack to interpret the intention of CELL+,
whereas the intention of TREE-RIGHT is much clearer.
- anton
--
M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
New standard: http://www.forth200x.org/forth200x.html
EuroForth 2015: http://www.rigwit.co.uk/EuroForth2015/
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Could Forth be getting a bit of traction? Mark Wills <markwills1970@gmail.com> - 2015-09-01 00:49 -0700
Re: Could Forth be getting a bit of traction? mentificium@gmail.com - 2015-09-01 04:18 -0700
Re: Could Forth be getting a bit of traction? Steve Graham <jsgrahamus@yahoo.com> - 2015-09-01 09:51 -0700
Re: Could Forth be getting a bit of traction? Andreas Wagner <andreas.wagner@lowfatcomputing.org> - 2015-09-01 10:23 -0700
Re: Could Forth be getting a bit of traction? hughaguilar96@gmail.com - 2015-09-02 13:53 -0700
Re: Could Forth be getting a bit of traction? Greg <borota@gmail.com> - 2015-09-04 17:35 -0700
Re: Could Forth be getting a bit of traction? hughaguilar96@gmail.com - 2015-09-04 18:27 -0700
Re: Could Forth be getting a bit of traction? Mux <Yvo.Zoer@gmail.com> - 2015-09-04 21:04 -0700
Re: Could Forth be getting a bit of traction? rickman <gnuarm@gmail.com> - 2015-09-05 00:27 -0400
Re: Could Forth be getting a bit of traction? hughaguilar96@gmail.com - 2015-09-04 21:48 -0700
Re: Could Forth be getting a bit of traction? rickman <gnuarm@gmail.com> - 2015-09-05 01:10 -0400
Re: Could Forth be getting a bit of traction? Mux <Yvo.Zoer@gmail.com> - 2015-09-04 22:19 -0700
Re: Could Forth be getting a bit of traction? hughaguilar96@gmail.com - 2015-09-04 23:31 -0700
Re: Could Forth be getting a bit of traction? Mux <Yvo.Zoer@gmail.com> - 2015-09-05 07:28 -0700
Re: Could Forth be getting a bit of traction? Alfred Singlestone <vitonis@gmail.com> - 2015-09-05 08:10 -0700
Re: Could Forth be getting a bit of traction? foxaudioresearch@gmail.com - 2015-09-05 09:05 -0700
Re: Could Forth be getting a bit of traction? visualforth@rocketmail.com - 2015-09-05 09:07 -0700
Re: Could Forth be getting a bit of traction? rickman <gnuarm@gmail.com> - 2015-09-05 13:08 -0400
Re: Could Forth be getting a bit of traction? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-09-05 16:32 +0000
Re: Could Forth be getting a bit of traction? Bernd Paysan <bernd.paysan@gmx.de> - 2015-09-05 22:19 +0200
Re: Could Forth be getting a bit of traction? Jason Damisch <jasondamisch@yahoo.com> - 2015-09-05 13:28 -0700
Re: Could Forth be getting a bit of traction? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-09-06 12:09 +0000
Re: Could Forth be getting a bit of traction? Richard Owlett <rowlett@cloud85.net> - 2015-09-06 13:27 -0500
Re: Could Forth be getting a bit of traction? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-09-07 15:36 +0000
Re: Could Forth be getting a bit of traction? hughaguilar96@gmail.com - 2015-09-07 09:46 -0700
Re: Could Forth be getting a bit of traction? hughaguilar96@gmail.com - 2015-09-05 14:20 -0700
Re: Could Forth be getting a bit of traction? hughaguilar96@gmail.com - 2015-09-06 20:52 -0700
Re: Could Forth be getting a bit of traction? Mux <Yvo.Zoer@gmail.com> - 2015-09-05 12:11 -0700
Re: Could Forth be getting a bit of traction? hughaguilar96@gmail.com - 2015-09-05 19:56 -0700
Re: Could Forth be getting a bit of traction? Greg <borota@gmail.com> - 2015-09-06 09:39 -0700
Re: Could Forth be getting a bit of traction? mhx@iae.nl - 2015-09-06 13:01 -0700
Re: Could Forth be getting a bit of traction? borota@gmail.com - 2015-09-06 18:48 -0700
Re: Could Forth be getting a bit of traction? hughaguilar96@gmail.com - 2015-09-06 19:43 -0700
Re: Could Forth be getting a bit of traction? borota@gmail.com - 2015-09-06 20:59 -0700
Re: Could Forth be getting a bit of traction? "WJ" <w_a_x_man@yahoo.com> - 2015-09-08 19:46 +0000
Re: Could Forth be getting a bit of traction? borota@gmail.com - 2015-09-08 13:28 -0700
Re: Could Forth be getting a bit of traction? jim.brakefield@ieee.org - 2015-09-08 17:27 -0700
Re: Could Forth be getting a bit of traction? Bernd Paysan <bernd.paysan@gmx.de> - 2015-09-09 03:35 +0200
Re: Could Forth be getting a bit of traction? Paul Rubin <no.email@nospam.invalid> - 2015-09-08 19:48 -0700
Re: Could Forth be getting a bit of traction? hughaguilar96@gmail.com - 2015-09-08 20:28 -0700
Re: Could Forth be getting a bit of traction? jim.brakefield@ieee.org - 2015-09-08 20:48 -0700
Re: Could Forth be getting a bit of traction? Paul Rubin <no.email@nospam.invalid> - 2015-09-08 21:00 -0700
Re: Could Forth be getting a bit of traction? hughaguilar96@gmail.com - 2015-09-08 21:35 -0700
Re: Could Forth be getting a bit of traction? mhx@iae.nl - 2015-09-10 15:20 -0700
Re: Could Forth be getting a bit of traction? jim.brakefield@ieee.org - 2015-09-10 17:26 -0700
Re: Could Forth be getting a bit of traction? "Elizabeth D. Rather" <erather@forth.com> - 2015-09-10 14:57 -1000
Re: Could Forth be getting a bit of traction? julian.fondren@endurance.com - 2015-09-10 20:47 -0700
Re: Could Forth be getting a bit of traction? mhx@iae.nl (Marcel Hendrix) - 2015-09-11 10:49 +0200
Re: Could Forth be getting a bit of traction? jim.brakefield@ieee.org - 2015-09-11 10:16 -0700
Re: Could Forth be getting a bit of traction? Ron Aaron <rambamist@gmail.com> - 2015-09-09 07:42 +0300
Re: Could Forth be getting a bit of traction? rickman <gnuarm@gmail.com> - 2015-09-08 18:41 -0400
Re: Could Forth be getting a bit of traction? hughaguilar96@gmail.com - 2015-09-08 19:24 -0700
Re: Could Forth be getting a bit of traction? "Elizabeth D. Rather" <erather@forth.com> - 2015-09-08 20:59 -1000
Re: Could Forth be getting a bit of traction? Greg <borota@gmail.com> - 2015-09-09 15:47 -0700
Re: Could Forth be getting a bit of traction? borota@gmail.com - 2015-09-11 08:15 -0700
Re: Could Forth be getting a bit of traction? visualforth@rocketmail.com - 2015-10-04 19:59 -0700
Re: Could Forth be getting a bit of traction? "Elizabeth D. Rather" <erather@forth.com> - 2015-10-04 17:48 -1000
Re: Could Forth be getting a bit of traction? Paul Rubin <no.email@nospam.invalid> - 2015-10-04 21:10 -0700
Re: Could Forth be getting a bit of traction? Roberto Waltman <usenet@rwaltman.com> - 2015-10-05 00:53 -0400
Re: Could Forth be getting a bit of traction? rickman <gnuarm@gmail.com> - 2015-10-05 03:51 -0400
Re: Could Forth be getting a bit of traction? "Elizabeth D. Rather" <erather@forth.com> - 2015-10-04 18:58 -1000
Re: Could Forth be getting a bit of traction? Paul Rubin <no.email@nospam.invalid> - 2015-10-04 23:35 -0700
Re: Could Forth be getting a bit of traction? Paul Rubin <no.email@nospam.invalid> - 2015-10-04 23:44 -0700
Re: Could Forth be getting a bit of traction? "Elizabeth D. Rather" <erather@forth.com> - 2015-10-05 08:54 -1000
Re: Could Forth be getting a bit of traction? Paul Rubin <no.email@nospam.invalid> - 2015-10-05 12:58 -0700
Re: Could Forth be getting a bit of traction? rickman <gnuarm@gmail.com> - 2015-10-06 01:35 -0400
Re: Could Forth be getting a bit of traction? JUERGEN <epldfpga@aol.com> - 2015-10-06 02:58 -0700
Re: Could Forth be getting a bit of traction? Raimond Dragomir <raimond.dragomir@gmail.com> - 2015-10-06 04:05 -0700
Re: Could Forth be getting a bit of traction? Mark Wills <markwills1970@gmail.com> - 2015-10-06 04:22 -0700
Re: Could Forth be getting a bit of traction? JUERGEN <epldfpga@aol.com> - 2015-10-06 15:00 -0700
Re: Could Forth be getting a bit of traction? Paul Rubin <no.email@nospam.invalid> - 2015-10-06 16:02 -0700
Re: Could Forth be getting a bit of traction? Ron Aaron <rambamist@gmail.com> - 2015-10-07 07:49 +0300
Re: Could Forth be getting a bit of traction? Paul Rubin <no.email@nospam.invalid> - 2015-10-06 15:04 -0700
Re: Could Forth be getting a bit of traction? Paul Rubin <no.email@nospam.invalid> - 2015-10-09 14:16 -0700
Re: Could Forth be getting a bit of traction? rickman <gnuarm@gmail.com> - 2015-10-06 09:34 -0400
Re: Could Forth be getting a bit of traction? "Elizabeth D. Rather" <erather@forth.com> - 2015-10-06 09:08 -1000
Re: Could Forth be getting a bit of traction? Paul Rubin <no.email@nospam.invalid> - 2015-10-06 20:49 -0700
Re: Could Forth be getting a bit of traction? rickman <gnuarm@gmail.com> - 2015-10-07 00:56 -0400
Re: Could Forth be getting a bit of traction? "Elizabeth D. Rather" <erather@forth.com> - 2015-10-06 21:11 -1000
Re: Could Forth be getting a bit of traction? Paul Rubin <no.email@nospam.invalid> - 2015-10-09 21:07 -0700
Re: Could Forth be getting a bit of traction? rickman <gnuarm@gmail.com> - 2015-10-10 19:38 -0400
Re: Could Forth be getting a bit of traction? Paul Rubin <no.email@nospam.invalid> - 2015-10-10 20:46 -0700
Re: Could Forth be getting a bit of traction? rickman <gnuarm@gmail.com> - 2015-10-11 01:16 -0400
Re: Could Forth be getting a bit of traction? hughaguilar96@gmail.com - 2015-10-10 22:50 -0700
Re: Could Forth be getting a bit of traction? "Elizabeth D. Rather" <erather@forth.com> - 2015-10-04 21:21 -1000
Re: Could Forth be getting a bit of traction? hughaguilar96@gmail.com - 2015-10-05 08:26 -0700
Re: Could Forth be getting a bit of traction? Alfred Singlestone <vitonis@gmail.com> - 2015-10-06 07:13 -0700
Re: Could Forth be getting a bit of traction? hughaguilar96@gmail.com - 2015-09-10 00:12 -0700
Re: Could Forth be getting a bit of traction? humptydumpty <ouatubi@gmail.com> - 2015-09-08 11:48 -0700
Re: Could Forth be getting a bit of traction? "Elizabeth D. Rather" <erather@forth.com> - 2015-09-08 20:55 -1000
Re: Could Forth be getting a bit of traction? hughaguilar96@gmail.com - 2015-09-09 02:28 -0700
Re: Could Forth be getting a bit of traction? november.nihal@gmail.com - 2015-09-09 03:36 -0700
Re: Could Forth be getting a bit of traction? Marek Brunda <marekb@phoenics.org> - 2015-09-09 03:59 -0700
Re: Could Forth be getting a bit of traction? "Elizabeth D. Rather" <erather@forth.com> - 2015-09-09 07:34 -1000
Re: Could Forth be getting a bit of traction? jim.brakefield@ieee.org - 2015-09-09 12:32 -0700
Re: Could Forth be getting a bit of traction? hughaguilar96@gmail.com - 2015-09-10 17:10 -0700
Re: Could Forth be getting a bit of traction? "WJ" <w_a_x_man@yahoo.com> - 2015-09-09 18:59 +0000
Re: Could Forth be getting a bit of traction? Whammo <sidciavic@gmail.com> - 2015-09-09 12:28 -0700
structs/unions/records (was: Could Forth be getting a bit of traction?) anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-09-09 07:10 +0000
Re: structs/unions/records (was: Could Forth be getting a bit of traction?) hughaguilar96@gmail.com - 2015-09-09 02:18 -0700
Re: structs/unions/records rickman <gnuarm@gmail.com> - 2015-09-09 23:27 -0400
Re: Could Forth be getting a bit of traction? hughaguilar96@gmail.com - 2015-09-06 23:18 -0700
Re: Could Forth be getting a bit of traction? awegel@arcor.de (Alexander Wegel) - 2015-09-07 12:57 +0200
Re: Could Forth be getting a bit of traction? hughaguilar96@gmail.com - 2015-09-07 09:55 -0700
Re: Could Forth be getting a bit of traction? "WJ" <w_a_x_man@yahoo.com> - 2015-09-07 18:45 +0000
Re: Could Forth be getting a bit of traction? awegel@arcor.de (Alexander Wegel) - 2015-09-08 00:13 +0200
Re: Could Forth be getting a bit of traction? Bernd Paysan <bernd.paysan@gmx.de> - 2015-09-08 01:51 +0200
Re: Could Forth be getting a bit of traction? awegel@arcor.de (Alexander Wegel) - 2015-09-08 00:13 +0200
Re: Could Forth be getting a bit of traction? "WJ" <w_a_x_man@yahoo.com> - 2015-09-07 18:27 +0000
Re: Could Forth be getting a bit of traction? borota@gmail.com - 2015-09-07 12:23 -0700
Re: Could Forth be getting a bit of traction? rickman <gnuarm@gmail.com> - 2015-09-07 16:14 -0400
Re: Could Forth be getting a bit of traction? hughaguilar96@gmail.com - 2015-09-07 17:39 -0700
Re: Could Forth be getting a bit of traction? rickman <gnuarm@gmail.com> - 2015-09-08 01:39 -0400
Re: Could Forth be getting a bit of traction? rickman <gnuarm@gmail.com> - 2015-09-05 03:12 -0400
Re: Could Forth be getting a bit of traction? foxaudioresearch@gmail.com - 2015-09-05 09:02 -0700
Re: Could Forth be getting a bit of traction? "WJ" <w_a_x_man@yahoo.com> - 2015-09-05 16:47 +0000
Re: Could Forth be getting a bit of traction? Alfred Singlestone <vitonis@gmail.com> - 2015-09-05 11:13 -0700
Re: Could Forth be getting a bit of traction? josv@planet.nl - 2015-09-01 12:37 -0700
Re: Could Forth be getting a bit of traction? Bernd Paysan <bernd.paysan@gmx.de> - 2015-09-01 22:02 +0200
Re: Could Forth be getting a bit of traction? Mux <Yvo.Zoer@gmail.com> - 2015-09-08 03:45 -0700
Re: Could Forth be getting a bit of traction? "Elizabeth D. Rather" <erather@forth.com> - 2015-09-08 07:54 -1000
Re: Could Forth be getting a bit of traction? hughaguilar96@gmail.com - 2015-09-08 19:08 -0700
Re: Could Forth be getting a bit of traction? Mux <Yvo.Zoer@gmail.com> - 2015-09-09 15:00 -0700
Re: Could Forth be getting a bit of traction? rickman <gnuarm@gmail.com> - 2015-09-09 23:18 -0400
Re: Could Forth be getting a bit of traction? p.lad.work@gmail.com - 2015-10-05 05:04 -0700
Re: Could Forth be getting a bit of traction? foxaudioresearch@gmail.com - 2015-10-05 06:39 -0700
Re: Could Forth be getting a bit of traction? Chris Curl <ccurl609@gmail.com> - 2015-10-05 18:44 -0700
Re: Could Forth be getting a bit of traction? "Elizabeth D. Rather" <erather@forth.com> - 2015-10-05 17:47 -1000
Re: Could Forth be getting a bit of traction? Chris Curl <ccurl609@gmail.com> - 2015-10-05 21:58 -0700
Re: Could Forth be getting a bit of traction? Jason Damisch <jasondamisch@yahoo.com> - 2015-10-06 10:55 -0700
Re: Could Forth be getting a bit of traction? "Elizabeth D. Rather" <erather@forth.com> - 2015-10-06 09:13 -1000
Re: Could Forth be getting a bit of traction? rickman <gnuarm@gmail.com> - 2015-10-06 01:37 -0400
csiph-web