POV-Ray : Newsgroups : povray.general : Macro Initialization? Server Time
10 Aug 2024 13:18:44 EDT (-0400)
  Macro Initialization? (Message 8 to 17 of 27)  
<<< Previous 7 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: Chris Huff
Subject: Re: Macro Initialization?
Date: 10 Feb 2000 16:31:17
Message: <chrishuff_99-A1E76B.16322010022000@news.povray.org>
In article <38A2CE02.5145A6B7@ida.utb.hb.se>, sa9### [at] idautbhbse 
wrote:

> Overloading functions (macros) is currently not possible. Maybe 
> something to implement in 3.5?

This sounds more like default values for parameters than 
overloading--although overloading might also be nice, I don't think it 
would be possible without changing the syntax for variables(which might 
not be such a bad idea).

-- 
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/


Post a reply to this message

From: David Fontaine
Subject: Re: Macro Initialization?
Date: 10 Feb 2000 17:54:47
Message: <38A34160.CD6BD8CB@faricy.net>
Bill DeWitt wrote:

> "Ron Parker" <ron### [at] povrayorg> wrote :
> >
> > so you're safe from ridicule:
> >
>
>     Well, at least about this....

Bill DimWitt. (couldn't resist) :-)

--
___     ______________________________________________________
 | \     |_                 <dav### [at] faricynet> <ICQ 55354965>
 |_/avid |ontaine               http://www.faricy.net/~davidf/

"Sitting on a cornflake, waiting for the van to come" -Beatles


Post a reply to this message

From: Ron Parker
Subject: Re: Macro Initialization?
Date: 10 Feb 2000 17:59:37
Message: <slrn8a6h5o.ov.ron.parker@linux.parkerr.fwi.com>
On Thu, 10 Feb 2000 16:53:20 -0600, David Fontaine wrote:
>Bill DeWitt wrote:
>>     Well, at least about this....
>
>Bill DimWitt. (couldn't resist) :-)

I've managed to resist all these years.  Surely you could have. :)


Post a reply to this message

From: Bill DeWitt
Subject: Re: Macro Initialization?
Date: 10 Feb 2000 18:30:28
Message: <38a34a14@news.povray.org>
"David Fontaine" <dav### [at] faricynet> wrote :
>
> Bill DimWitt. (couldn't resist) :-)
>

    This is one of the most common ones. Here is the list of ones that have
caused their owners to sprout broken noses so far....

DimWitt (3)
DipShit (2)
DeTwitt (1)
DickLick (1)(which my spellchecker thinks should be picklock)
DeWittless (1)

    I once let a "BeShat" slide on account of originality and because he got
the past tense of "to shit" correct.


Post a reply to this message

From: Peter Popov
Subject: Re: Macro Initialization?
Date: 10 Feb 2000 18:59:30
Message: <AFCjOLiE2pcJByPRUFOIBbzQ8y=7@4ax.com>
On Thu, 10 Feb 2000 18:30:21 -0500, "Bill DeWitt"
<the### [at] earthlinknet> wrote:

>    I once let a "BeShat" slide on account of originality and because he got
>the past tense of "to shit" correct.

Ahem, that past tense is a myth last that I cared to check. It follows
the conjugation of "sit" because they are somewhat related, but it
could as well have preferred the "fit" way. It's a made-up thing
afaik.


Peter Popov
pet### [at] usanet
ICQ: 15002700


Post a reply to this message

From: Mark Gordon
Subject: Re: Macro Initialization?
Date: 10 Feb 2000 20:40:30
Message: <38A36961.4FE3809@mailbag.com>
Peter Popov wrote:

> Ahem, that past tense is a myth last that I cared to check. It follows
> the conjugation of "sit" because they are somewhat related, but it
> could as well have preferred the "fit" way. It's a made-up thing
> afaik.

Since it derives from Old English, and most of the similar verbs derived
from Old English ("sit" and "spit") are strong verbs, it's entirely
logical that it follow the same pattern.  I don't have an OED, and none
of my Old English textbooks have the word, but I don't have the Old
English leechcraft book (the one place I'd expect it), so I'm not
entirely surprised I can't find it.  If I really, really wanted to, I
might be able to look it up at the friendly neighborhood reference
library.

-Mark Gordon


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Macro Initialization?
Date: 10 Feb 2000 21:14:10
Message: <38a37072@news.povray.org>
In article <chrishuff_99-A1E76B.16322010022000@news.povray.org> , Chris Huff
<chr### [at] yahoocom>  wrote:

> This sounds more like default values for parameters than
> overloading--although overloading might also be nice, I don't think it
> would be possible without changing the syntax for variables(which might
> not be such a bad idea).

You may want to reconsider after reading:
<http://www.AskTog.com/columns/028WebStealers.html>

As a programmer I don't agree with him, but as a user I surely have to :-)


      Thorsten


____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: David Fontaine
Subject: Re: Macro Initialization?
Date: 10 Feb 2000 23:09:25
Message: <38A38B1B.86D18146@faricy.net>
Bill DeWitt wrote:

> DimWitt (3)
> DipShit (2)
> DeTwitt (1)
> DickLick (1)(which my spellchecker thinks should be picklock)
> DeWittless (1)

It's all in good humor...well, maybe not...

--
___     ______________________________________________________
 | \     |_                 <dav### [at] faricynet> <ICQ 55354965>
 |_/avid |ontaine               http://www.faricy.net/~davidf/

"Sitting on a cornflake, waiting for the van to come" -Beatles


Post a reply to this message

From: Bill DeWitt
Subject: Re: Macro Initialization?
Date: 11 Feb 2000 00:09:58
Message: <38a399a6@news.povray.org>
per <http://www.m-w.com/dictionary.htm>

Main Entry: shat
past and past participle of SHIT


"Peter Popov" <pet### [at] usanet> wrote in message
news:AFCjOLiE2pcJByPRUFOIBbzQ8y=7@4ax.com...
> On Thu, 10 Feb 2000 18:30:21 -0500, "Bill DeWitt"
> <the### [at] earthlinknet> wrote:
>
> >    I once let a "BeShat" slide on account of originality and because he
got
> >the past tense of "to shit" correct.
>
> Ahem, that past tense is a myth last that I cared to check. It follows
> the conjugation of "sit" because they are somewhat related, but it
> could as well have preferred the "fit" way. It's a made-up thing
> afaik.
>
>
> Peter Popov
> pet### [at] usanet
> ICQ: 15002700


Post a reply to this message

From: Gail Shaw
Subject: Re: Macro Initialization?
Date: 11 Feb 2000 02:26:31
Message: <38a3b9a7@news.povray.org>
>gadget(knobs)
>gadget(knobs,lights,dials)
>gadget(dials,dial_light,dial_needle,dial_range)
>


I had a similar problem writing my wall macro.

What I did was to have as macro parameters only those
fields necessarry. At the beginning of the file with the macro in,
I declare variables for the optional stuff to a default. The
user can then redeclare the variables before calling the macro.

eg

// file macro.inc

#declare Var1=0;

#macro ThisandThat(Vara,Varb,varc)
....
// Use var1 somewhere here
....

#end

Works fine for me, also solves the problem of not being able to
remember which parameter comes first.

Gail
*******************************************************************
* gsh### [at] monotixcoza              * ERROR: COFFEE.COM not found  *
* http://www.rucus.ru.ac.za/~gail/ * Insert cup and press any key *
*******************************************************************
* Definition of an upgrade: Take the old bugs out, put new ones in*
*******************************************************************


Post a reply to this message

<<< Previous 7 Messages Goto Latest 10 Messages Next 10 Messages >>>

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.