From: Nathan Baker on 8 May 2010 06:25 "Juha Nieminen" <nospam(a)thanks.invalid> wrote in message news:4be50dcf$0$2544$7b1e8fa0(a)news.nbl.fi... > In comp.lang.c++ io_x <a(a)b.c.invalid> wrote: >> with assembly is possible to write recursions functions too > > That's like saying that C supports object-oriented programming. Of course it does! C certainly has support for data structures. There is absolutely no high-level language feature that can't also be implemented in C and ASM. Nathan.
From: Nathan Baker on 8 May 2010 06:34 "Daniel T." <daniel_t(a)earthlink.net> wrote in message news:daniel_t-BE6842.14333007052010(a)70-3-168-216.pools.spcsdns.net... >> Can a container contain another container, which in turn contains >> another container? If so, isn't a nested loop the most natural way to >> traverse the elements? > > Then you would need an infinite number of find functions, one for each > dimension count. (i.e., a find for 1D arrays, a find for 2D arrays, a > find for 3D arrays, a find for 4D arrays, etc.) That's silly. > > http://en.wikipedia.org/wiki/Zero_One_Infinity Maybe our entire 4D universe is represented by a 1D array?? If so, screw the warp drive... we just need to arrange a buffer-overflow, insert our own code (guess we need to know what processor it runs on) and we can transport ourselves to another planet in an instant. :) Nathan.
From: Nathan Baker on 8 May 2010 06:46 "wolfgang kern" <nowhere(a)never.at> wrote in message news:hs1msu$9ca$1(a)newsreader2.utanet.at... > > Ok Nate, we had enough discussions on this matter since HLLs > entered our progamming world ... > We better give up arguing and let the 'faster' programmers > be proud of their 'maintainable/foolproof-readable' sources > which are awful detours with "abstraction layers" while the > few hardware freaks like me work on "really existing things" :) > The CPU experiences a nightmare while executing HLL code. Perhaps there is an instructive way for us to demonstrate this fact? Nathan.
From: bart.c on 8 May 2010 09:47 "Nathan Baker" <nathancbaker(a)gmail.com> wrote in message news:4-Wdnf4R-ruqoXjWnZ2dnUVZ_tydnZ2d(a)giganews.com... > > "Juha Nieminen" <nospam(a)thanks.invalid> wrote in message > news:4be50dcf$0$2544$7b1e8fa0(a)news.nbl.fi... >> In comp.lang.c++ io_x <a(a)b.c.invalid> wrote: >>> with assembly is possible to write recursions functions too >> >> That's like saying that C supports object-oriented programming. > > Of course it does! C certainly has support for data structures. > > There is absolutely no high-level language feature that can't also be > implemented in C and ASM. Nor as machine code, microcode, or even as a bunch of integrated circuits or logic gates or transistors. But you wouldn't want to. -- Bartc
From: Nick Keighley on 8 May 2010 12:32
On 8 May, 01:41, Lie Ryan <lie.1...(a)gmail.com> wrote: > > I've never heard of any programming languages that doesn't support > > recursion. > > except for assembly, perhaps... or some very ancient or jokular languages FORTRAN (in its original form), Coral-66 you had to use a special keyword to indicate a function was recursive. Some BASICs probably didn't alow recursion. But these all qualify as "ancient" (and maybe jocular!) |