slang-users mailing list

[2009 Date Index] [2009 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: [slang-users] keyword "then"


Hallo Bernhard,

variable x;
foreach x ([1,2,3]) {
  ()=printf("%d\n", x);
} then ()=printf("done\n");

[...] prints the numbers only.

slsh version 0.8.4-0; S-Lang version: 2.1.4

This bug was fixed with change #23 after version 2.1.4:

23. src/slang.c, slparse.c: "then" clauses were not being executed for
   top-level looping statements (statements occuring outside function
   definitions).

Schöne Grüße,

Manfred

--
Manfred Hanke      Manfred.Hanke(at)sternwarte.uni-erlangen.de
Dr. Karl Remeis-Observatory,  University of Erlangen-Nuremberg
Sternwartstrasse 7,      96049 Bamberg, Germany
phone: ++49 951 95222-34                fax: ++49 951 95222-22
 web: http://pulsar.sternwarte.uni-erlangen.de/hanke
--

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


================================================================================================
This message and any attachments are intended for the use of the addressee or addressees only. The
unauthorised disclosure, use, dissemination or copying (either in whole or in part) of its content
is prohibited. If you received this message in error, please delete it from your system and notify
the sender. E-mails can be altered and their integrity cannot be guaranteed. ESA shall not be liable
for any e-mail if modified.
=================================================================================================





[2009 date index] [2009 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]