Author Topic: explain me how is work (cond, While & its)  (Read 7785 times)

0 Members and 1 Guest are viewing this topic.

pkohut

  • Bull Frog
  • Posts: 483
Re: explain me how is work (cond, While & its)
« Reply #15 on: September 18, 2010, 02:51:25 PM »
cond is similar to the switch statement in C++ except for its spelling and implementation

Is it right that the switch statement can only handle integers as the test expressions though? I found that really annoying when learning C++ ...  :|

Being a low level language it doesn't give you the kitchen sink. It doesn't even give you a kitchen.  :-D
New tread (not retired) - public repo at https://github.com/pkohut

Lee Mac

  • Seagull
  • Posts: 12924
  • London, England
Re: explain me how is work (cond, While & its)
« Reply #16 on: September 18, 2010, 06:25:22 PM »
cond is similar to the switch statement in C++ except for its spelling and implementation

Is it right that the switch statement can only handle integers as the test expressions though? I found that really annoying when learning C++ ...  :|

Being a low level language it doesn't give you the kitchen sink. It doesn't even give you a kitchen.  :-D

 :-D

stevej

  • Newt
  • Posts: 30
Re: explain me how is work (cond, While & its)
« Reply #17 on: September 18, 2010, 10:30:38 PM »
Here's an excellent post from another forum I happened upon some time ago that explains it well.
It's a coupla years ago, but well worth the read.
http://www.cadtutor.net/forum/showthread.php?27101&p=173196&viewfull=1#post173196

SteveJ

Lee Mac

  • Seagull
  • Posts: 12924
  • London, England
Re: explain me how is work (cond, While & its)
« Reply #18 on: September 19, 2010, 08:49:39 AM »
Here's an excellent post from another forum I happened upon some time ago that explains it well.
It's a coupla years ago, but well worth the read.
http://www.cadtutor.net/forum/showthread.php?27101&p=173196&viewfull=1#post173196

SteveJ

Wow - thats from back when I started LISP  :lol: