|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Bob H." wrote:
>
> Yes, with a file open in the editor press Alt + Enter or go to Editor (main
> menu) and Properties. Under Misc you set Line Numbering Style to Decimal to
> see them in the usual interger count.
Now is we could get a "goto" command everything would be great...
--
Ken Tyler - 1400+ POV-Ray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Ken" <tyl### [at] pacbellnet> wrote in message
news:3B4E6572.BE0A3960@pacbell.net...
>
> >
> > Yes, with a file open in the editor press Alt + Enter or go to Editor
(main
> > menu) and Properties. Under Misc you set Line Numbering Style to
Decimal to
> > see them in the usual interger count.
>
> Now is we could get a "goto" command everything would be great...
>
I take it that was a joke about programming languages which use line
numbers, as the editor does already have a Go To Line via Ctrl+G. I don't
know if I'd want POV parsing by jumping around in the file like that.
Bob H.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> I take it that was a joke about programming languages which use line
> numbers, as the editor does already have a Go To Line via Ctrl+G. I don't
> know if I'd want POV parsing by jumping around in the file like that.
>
> Bob H.
Smart loops are often more usefull then goto's
Ambis
>
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> Smart loops are often more usefull then goto's
but goto's are more fun, especially whan you call all your labels 'LAB_A,
LAB_B, LAB_C' etc etc :)
--
Rick
Kitty5 WebDesign - http://Kitty5.com
Hi-Impact database driven web site design & e-commerce
TEL : +44 (01625) 266358 - FAX : +44 (01625) 611913 - ICQ : 15776037
POV-Ray News & Resources - http://Povray.co.uk
PGP Public Key
http://pgpkeys.mit.edu:11371/pks/lookup?op=get&search=0x231E1CEA
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Rick [Kitty5]" wrote:
>
> > Smart loops are often more usefull then goto's
>
> but goto's are more fun, especially whan you call all your labels 'LAB_A,
> LAB_B, LAB_C' etc etc :)
I guess that they are more fun because the code gets cryptic and it is
fun when others have to guess how it works until you explain it to
them. But cryptic code is not as useful as clear code since clear code
can be understood and modified easily.
Brendan
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
AC wrote:
>
> Smart loops are often more usefull then goto's
Smart gotos are often more useful than cryptic loops.
Markus
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Markus Becker <bec### [at] aicossde> wrote:
: Smart gotos are often more useful than cryptic loops.
I have coded more than 2 years C++ professionally (ie. I make my living)
in a University in a Computer technology department. I have written several
tens of thousands of code (plus more as hobby).
I have never needed to use goto.
No, I don't hate goto and I don't avoid it intentionally. It's just that
I have still not found myself in a situation where goto would be the easiest
and cleanest solution.
I don't make cryptic loops either.
--
#macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
],13),8)-3,10>#end blob{N(array[6]{11117333955,
7382340,3358,3900569407,970,4254934330},0)}// - Warp -
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Warp" <war### [at] tagpovrayorg> wrote in message
news:3b7aadf1@news.povray.org...
> Markus Becker <bec### [at] aicossde> wrote:
> : Smart gotos are often more useful than cryptic loops.
>
> I have coded more than 2 years C++ professionally (ie. I make my living)
> in a University in a Computer technology department. I have written
several
> tens of thousands of code (plus more as hobby).
> I have never needed to use goto.
>
Sure, but how often do you use exception handling ? Before try & catch
existed, goto's were very handy for good, clean & safe exception handling.
--
Scott Hill.
Software Engineer.
E-Mail : sco### [at] innocentcom
Pandora's Box : http://www.pandora-software.com
*Everything in this message/post is purely IMHO and no-one-else's*
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Warp wrote:
>
> I have coded more than 2 years C++ professionally (ie. I make my living)
> in a University in a Computer technology department. I have written several
> tens of thousands of code (plus more as hobby).
> I have never needed to use goto.
What do you think that I earn my living with?
I have _one_ single goto in all of my projects and I could have used
exception handling for that, but where's the difference (in my special
case).
BTW: every _break_ is a _goto_ in disguise.
Markus
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Markus Becker <bec### [at] aicossde> wrote:
: BTW: every _break_ is a _goto_ in disguise.
You forgot 'continue'.
One would argue that a switch() and an if(), and even for() and while()
have gotos.
However, break and continue are much more controlled and restricted than
goto.
--
#macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
],13),8)-3,10>#end blob{N(array[6]{11117333955,
7382340,3358,3900569407,970,4254934330},0)}// - Warp -
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |