| Deutsch English Français Italiano |
|
<vf4edp$p7sq$3@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Don Y <blockedofcourse@foo.invalid>
Newsgroups: sci.electronics.design
Subject: Re: Duplicate identifiers in a single namespace
Date: Sun, 20 Oct 2024 19:31:20 -0700
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <vf4edp$p7sq$3@dont-email.me>
References: <vdbgch$1ob5k$1@dont-email.me>
<nnd$37a9dde7$61356113@e5c57d590be73bf6>
<o8jvgjt1vj7jo87i1b1nq867ivv64bvkn8@4ax.com> <vepai9$2dfrb$1@dont-email.me>
<hqg0hjl6jshfnqcqtu6982t6tksldn93m0@4ax.com> <vepjok$2eqc8$1@dont-email.me>
<5mb8hjt0m6sauphsrj9lt764iejamr66dt@4ax.com> <vf1i38$3atc$2@dont-email.me>
<cslahjdbii4ld914fi1lgtqqs3pd86sdpr@4ax.com> <vf4cvh$p7sq$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 21 Oct 2024 04:31:22 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="057c45bf54674c2ecfa729afda916961";
logging-data="827290"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18OJx4957IRdsYgY63TNaHS"
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.2.2
Cancel-Lock: sha1:lk9gzS2NJGwNn7vZxAbYAVR5cI4=
In-Reply-To: <vf4cvh$p7sq$1@dont-email.me>
Content-Language: en-US
Bytes: 3215
On 10/20/2024 7:06 PM, Don Y wrote:
> // resolve the objects governing the process
> theClock = MyContext=>resolve("Clock")
> theLog = MyContext=>resolve("Log")
> thePrinter = MyContext=>resolve("Printer")
> theDevice = thePrinter=>FriendlyName()
>
> // process each paycheck
> while( thePaycheck = MyContext=>resolve("Paycheck") ) {
> // get the parameters of interest for this paycheck
> thePayee = thePaycheck=>payee()
> theAmount = thePaycheck=>amount()
> theTime = theClock=>now()
>
> // print the check
> thePrinter=>write("Pay to the order of "
> , thePayee
> , "EXACTLY "
> , stringify(theAmount)
> )
>
> // make a record of the transaction
> theLog=>write("Drafted a disbursement to "
> , thePayee
> , " in the amount of "
> , theAmount
> , " at "
> , theTime
> , " printed on "
> , FriendlyName
"FriendlyName" s.b. "theDevice"
> )
>
> // discard the processed paycheck
> MyContext=>unlink(thePaycheck)
> }
>
> // no more "Paycheck"s to process