Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!saxony!dgil From: dgil@pa.reuter.COM (Dave Gillett) Newsgroups: comp.lang.c++ Subject: Re: complex float z = 1.0i2.2; Message-ID: <782@saxony.pa.reuter.COM> Date: 17 Feb 91 20:35:28 GMT References: <1991Feb13.233418.26399@intellistor.com> Distribution: comp Organization: Reuter:file Inc (A Reuter Company) Palo Alto, CA Lines: 23 In <1991Feb13.233418.26399@intellistor.com> wicklund@intellistor.com (Tom Wicklund) writes: >One of my personal tests for a language is whether it breaks its own >rules. For example, when introduced to Pascal I was told all of the >reasons why functions must not have a variable number of arguments. >Then they introduced the Read and Write "functions" since I/O under >Pascal's restrictions is too painful. >C and C++ are good at letting me do anything the language can do. I agree with Tom about this principle. That's why I can hardly wait for iterators. As it stands, "for" and "while" statements usually contain predicates, expressions which are evaluated on each pass where (usually!) the loop body makes some contextual change which affects the evaluation of the predicate. What I'd really like to do is pass predicates to methods on collection classes, without having to build predicate functions for them, and I can't do that in C; it sure looks (from what I've seen) like iterators are going to make the most common cases available in C++, and I'm glad. Dave