On Friday 08 November 2013 08:54:38 Ivanko B wrote:
> Do you use Pascal subrange type? Would you miss it?
> =====================
>
> Me use one in other languages - in BASH :
> ---------------------
> for i in `seq 1 10`; do
>   echo $i
> done
> ---------------------
> for instance.
>
> in SQL :
> --------
>   [..] where i between 1 and 10
> ----------
>
> PL/PgSQL
> ---------------
> for i in 1..10 loop
>   select i;
> end loop;
> ------------
>
That is not Pascal subrange type, you use
"
for i:= 1 to 10 do begin
end;
"

Pascal subrange type is
"
type
 subty = 1..10;
"
or
"
var
 sub1: 1..10;
"
or
"
type
 dayty = (mon,tue,wed,thu,fri,sat,sun);
 workdayty = mon..fri;
"

Martin

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to