Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Les Cargill <lcargill99@comcast.com> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: one type less language |
| Date | 2015-06-06 12:55 -0500 |
| Organization | A noiseless patient Spider |
| Message-ID | <mkvboc$egp$1@dont-email.me> (permalink) |
| References | <ee5b4ddd-7a35-4bff-bc23-b04ec5abf25a@googlegroups.com> |
asetofsymbols@gmail.com wrote:
> Yes it is possible to have a language
> without types...
> Than how easy represent
> struct name{
> Type1 name;
> Type2 name2;
> Etc
> };
> And find the errors in wrong type
> operator= call?
>
Tcl is basically typeless. I say "basically" because
obviously, " set x [ expr Hello + 43.5 ]" is nonsense
( and will be flagged as such ).
You can use Tcl arrays as structs.
array set name { name "Bob" name2 "Ted" }
puts $name(name)
Bob
You can have arrays of structs by adding "columns" to the indices:
array set name { name,1 "Bob" name2,1 "Ted" name,2 "Fred" name2,2
"George" }
--
Les Cargill
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
one type less language asetofsymbols@gmail.com - 2015-06-05 22:08 -0700
Re: one type less language David Kleinecke <dkleinecke@gmail.com> - 2015-06-06 09:35 -0700
Re: one type less language Richard Damon <Richard@Damon-Family.org> - 2015-06-06 13:10 -0400
Re: one type less language Les Cargill <lcargill99@comcast.com> - 2015-06-06 13:01 -0500
Re: one type less language Michael Angelo Ravera <maravera@prodigy.net> - 2015-06-07 13:03 -0700
Re: one type less language Les Cargill <lcargill99@comcast.com> - 2015-06-06 12:55 -0500
one type less language asetofsymbols@gmail.com - 2015-06-06 12:15 -0700
Re: one type less language Bartc <bc@freeuk.com> - 2015-06-06 20:23 +0100
Re: one type less language Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-06-06 20:28 +0100
Re: one type less language jt@toerring.de (Jens Thoms Toerring) - 2015-06-06 23:21 +0000
Re: one type less language Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-06-07 09:59 -0700
Re: one type less language Bartc <bc@freeuk.com> - 2015-06-07 20:20 +0100
Re: one type less language jt@toerring.de (Jens Thoms Toerring) - 2015-06-08 09:42 +0000
Re: one type less language Bartc <bc@freeuk.com> - 2015-06-08 11:28 +0100
Re: one type less language Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-06-08 05:10 -0700
Re: one type less language Mel <mel@zzzzz.com> - 2015-06-08 15:39 +0300
Re: one type less language "J. Clarke" <j.clarke.873638@gmail.com> - 2015-09-08 05:23 -0400
Re: one type less language Robert Wessel <robertwessel2@yahoo.com> - 2015-09-08 10:20 -0500
Re: one type less language Keith Thompson <kst-u@mib.org> - 2015-06-06 13:56 -0700
Re: one type less language luser droog <luser.droog@gmail.com> - 2015-06-07 23:20 -0700
Re: one type less language asetofsymbols@gmail.com - 2015-06-08 02:50 -0700
csiph-web