inherit
125435
0
Jun 1, 2013 7:46:21 GMT -8
Lugubrious
I love arrays...
790
May 2008
lugubrious
|
Post by Lugubrious on Jun 1, 2010 12:40:36 GMT -8
Oh my, I should've known the coder community would be all over the syntax.
|
|
inherit
130228
0
Jul 11, 2024 19:19:59 GMT -8
Charles Stover
1,731
August 2008
gamechief
|
Post by Charles Stover on Jun 1, 2010 22:24:19 GMT -8
It's not code if it's not proper syntax! And if it's not code, it's not funny.
|
|
Troxy
Junior Member
Song in the air, why should singer care when singer can be among song?
Posts: 321
inherit
126658
0
Apr 11, 2011 0:17:35 GMT -8
Troxy
Song in the air, why should singer care when singer can be among song?
321
June 2008
troxy
|
Post by Troxy on Jun 5, 2010 17:22:30 GMT -8
I don't see why have and hold, as well as love and cherish have to be separate. >> I like the idea of coupling them together, so that it's easier to understand. Rofl, that's just me trying to make code look nice, as well as function properly. Silly me, it'll never take me anywhere.
|
|
inherit
130228
0
Jul 11, 2024 19:19:59 GMT -8
Charles Stover
1,731
August 2008
gamechief
|
Post by Charles Stover on Jun 5, 2010 18:58:00 GMT -8
'Cause there should be better use of "and."
|
|
inherit
100824
0
May 13, 2012 5:37:49 GMT -8
Michael
14,585
March 2007
wrighty
|
Post by Michael on Jun 9, 2010 3:29:21 GMT -8
In theory, you have to define the functions & variables if we're being picky!
|
|
inherit
17569
0
Aug 14, 2023 13:11:03 GMT -8
frufru
11,774
December 2003
frufru
|
Post by frufru on Jun 9, 2010 5:46:25 GMT -8
In theory, you have to define the functions & variables if we're being picky! #include <Life.h> ...also, do any of the major languages that use this syntax actually support do-until loops? I only found do-while or just while when searching for them
|
|
inherit
77753
0
Jul 18, 2024 12:23:50 GMT -8
Bob
2,623
April 2006
bobbyhensley
|
Post by Bob on Jun 9, 2010 6:22:51 GMT -8
In theory, you have to define the functions & variables if we're being picky! #include <Life.h> ...also, do any of the major languages that use this syntax actually support do-until loops? I only found do-while or just while when searching for them Yes, Perl does. C/C++ are also capable of supporting this via a preprocessor definition.
|
|
inherit
130228
0
Jul 11, 2024 19:19:59 GMT -8
Charles Stover
1,731
August 2008
gamechief
|
Post by Charles Stover on Jun 9, 2010 14:25:27 GMT -8
I think he's talking about the use of until not the use of do.
|
|
inherit
17569
0
Aug 14, 2023 13:11:03 GMT -8
frufru
11,774
December 2003
frufru
|
Post by frufru on Jun 9, 2010 16:42:30 GMT -8
I think he's talking about the use of until not the use of do. I think Bobby is right about those languages that use do-until. Do loops (with while) exist in just about every language, but as for until those were the only ones I came across after some further searching. Though in Perl you'd probably be wanting until ($death==true)
|
|
inherit
77753
0
Jul 18, 2024 12:23:50 GMT -8
Bob
2,623
April 2006
bobbyhensley
|
Post by Bob on Jun 9, 2010 21:56:06 GMT -8
I think he's talking about the use of until not the use of do. As was I. Perl#! /usr/bin/perl
use strict;
my $i = 1;
do { print "$i\n"; $i++; } until ($i > 10); C#include <stdio.h> #define until(expr) while((expr) == 0)
int main (int argc, char *argv[]) { unsigned short int i = 1; do { printf ("%d\n", i); i++; } until (i > 10); return 0; } C++#include <iostream> #define until(expr) while((expr) != true)
int main (int argc, char *argv[]) { unsigned short int i = 1; do { std::cout << i << std::endl; i++; } until (i > 10);
return 0; }
|
|