Good evening David, Not a problem. I've done the same myself.
regards Bruce Rennie On 09/04/2013 09:41 PM, David Gamey wrote: > Bruce, > > Please see my note to Jafar. Perils of replying to email late. > > My normal usage is things like every a|b|c|d := table() > > Sorry for the confusion. > > David > > > ------------------------------------------------------------------------ > *From:* Bruce & Breeanna Rennie <bren...@dcsi.net.au> > *To:* unicon-group@lists.sourceforge.net > *Sent:* Tuesday, September 3, 2013 10:14:52 PM > *Subject:* Re: [Unicon-group] List comprehension > > David, > > Caqn you give an example of how this works for you? I have tried the > following and get the following results > > ####CODE##### > > link ximage > > procedure main() > local a, b, c > every ![a, b, c] := [1, 2, 3] > write("a:", ximage(a), " b:", ximage(b), " c:", ximage(c)) > every ![a, b, c] := x() > write("a:", a, " b:", b, " c:", c) > every ![a, b, c] := y() > write("a:", a, " b:", b, " c:", c) > end > > procedure x() > return ["a", 1, "xxcd"] > end > > procedure y() > suspend ![1000, "xxxxxx", 2000] > end > > ####RESULTS#### > > a:&null b:&null c:&null > a: b: c: > a: b: c: > > > regards > > Bruce Rennie > > On 09/04/2013 11:56 AM, Jafar Al-Gharaibeh wrote: > > > > David, > > > > What are the consequences of having your trick as a syntactic > sugar? i.e. > > > > [ ] := expr > > > > Is changed to > > > > every ![ ] := expr > > > > One possible undesirable side effect would be forcing expr to > generate > > results to exhaustion. Maybe something like > > > > every ![a, b, c ] := expr / *[a, b, c ] > > > > Would fix that issue though. > > > > --Jafar > > > > On Sep 3, 2013 8:39 PM, "David Gamey" <david.ga...@rogers.com > <mailto:david.ga...@rogers.com> > > <mailto:david.ga...@rogers.com <mailto:david.ga...@rogers.com>>> > wrote: > > > > I vote yes! Great suggestion. > > > > I cheat with every ![a,b,c] := proc(...) > > > > > ------------------------------------------------------------------------ > > *From:* Kostas Oikonomou <k...@research.att.com > <mailto:k...@research.att.com> > > <mailto:k...@research.att.com <mailto:k...@research.att.com>>> > > *To:* unicon-group@lists.sourceforge.net > <mailto:unicon-group@lists.sourceforge.net> > > <mailto:unicon-group@lists.sourceforge.net > <mailto:unicon-group@lists.sourceforge.net>> > > *Sent:* Tuesday, September 3, 2013 8:31:12 PM > > *Subject:* Re: [Unicon-group] List comprehension > > > > Very nice addition! > > > > And just in case you are on the lookout for suggestions, > > > > [a,b,c] := proc(...) > > > > would be next on my wish list. > > > > > Kostas > > > > On 09/03/2013 19:06, Clinton Jeffery wrote: > > > Hi, > > > > > > Those of you who follow changes in Unicon via the SVN > > repository will > > > find the addition of > > > > > > [: generator_expression :] > > > > > > which is equivalent to > > > > > > {__tmp := []; every put(__tmp, generator_expression); if > > *__tmp>0 then > > > __tmp } > > > > > > Most typically I imagine this will be used in > statements like > > > > > > L:= [: 1 to 10 :] > > > > > > but I am sure there are other creative uses. This being > > "real new", > > > there may be flaws and I welcome feedback. I don't think it > > is cast in > > > stone yet. > > > > > > Cheers, > > > Clint > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL > > 2012, more! > > Discover the easy way to master current and previous > Microsoft > > technologies > > and advance your career. Get an incredible 1,500+ hours of > > step-by-step > > tutorial videos with LearnDevNow. Subscribe today and save! > > > > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk > > _______________________________________________ > > Unicon-group mailing list > > Unicon-group@lists.sourceforge.net > <mailto:Unicon-group@lists.sourceforge.net> > > <mailto:Unicon-group@lists.sourceforge.net > <mailto:Unicon-group@lists.sourceforge.net>> > > https://lists.sourceforge.net/lists/listinfo/unicon-group > > > > > > > > > > ------------------------------------------------------------------------------ > > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL > 2012, more! > > Discover the easy way to master current and previous Microsoft > > technologies > > and advance your career. Get an incredible 1,500+ hours of > > step-by-step > > tutorial videos with LearnDevNow. Subscribe today and save! > > > > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk > > _______________________________________________ > > Unicon-group mailing list > > Unicon-group@lists.sourceforge.net > <mailto:Unicon-group@lists.sourceforge.net> > > <mailto:Unicon-group@lists.sourceforge.net > <mailto:Unicon-group@lists.sourceforge.net>> > > https://lists.sourceforge.net/lists/listinfo/unicon-group > > > > > > > > > > ------------------------------------------------------------------------------ > > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, > more! > > Discover the easy way to master current and previous Microsoft > technologies > > and advance your career. Get an incredible 1,500+ hours of > step-by-step > > tutorial videos with LearnDevNow. Subscribe today and save! > > > > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk > > > > > > _______________________________________________ > > Unicon-group mailing list > > Unicon-group@lists.sourceforge.net > <mailto:Unicon-group@lists.sourceforge.net> > > https://lists.sourceforge.net/lists/listinfo/unicon-group > > > > ------------------------------------------------------------------------------ > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! > Discover the easy way to master current and previous Microsoft > technologies > and advance your career. Get an incredible 1,500+ hours of > step-by-step > tutorial videos with LearnDevNow. Subscribe today and save! > > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk > _______________________________________________ > Unicon-group mailing list > Unicon-group@lists.sourceforge.net > <mailto:Unicon-group@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/unicon-group > > > > > ------------------------------------------------------------------------------ > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! > Discover the easy way to master current and previous Microsoft technologies > and advance your career. Get an incredible 1,500+ hours of step-by-step > tutorial videos with LearnDevNow. Subscribe today and save! > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk > > > _______________________________________________ > Unicon-group mailing list > Unicon-group@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/unicon-group ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk _______________________________________________ Unicon-group mailing list Unicon-group@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/unicon-group