Re: [feature] did you guys knew that ? is a valid character for function/command name?
This is very bad news for my long-held campaign to introduce '@' as an optional (but one day might be checked) prefix to a parameter, to indicate in the calling line that this is passed by reference. ie if functionWithSideEffects(tInput, @tOutput) then ... should allow the reader to know immediately that 'functionWithSideEffects' takes the second parameter by reference. On 05/09/2010 22:01, Mark Wieder wrote: Andre- Sunday, September 5, 2010, 11:37:46 AM, you wrote: Folks, Did you guys knew that ? is a valid character for naming functions and commands? I just created a function like that and it works ...it gets worse... see bz #8048 ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: [feature] did you guys knew that ? is a valid character for function/command name?
Err, Ben, this is actually in place since forever... we can pass by references values with @ On Tue, Sep 7, 2010 at 5:51 AM, Ben Rubinstein benr...@cogapp.com wrote: This is very bad news for my long-held campaign to introduce '@' as an optional (but one day might be checked) prefix to a parameter, to indicate in the calling line that this is passed by reference. ie if functionWithSideEffects(tInput, @tOutput) then ... should allow the reader to know immediately that 'functionWithSideEffects' takes the second parameter by reference. On 05/09/2010 22:01, Mark Wieder wrote: Andre- Sunday, September 5, 2010, 11:37:46 AM, you wrote: Folks, Did you guys knew that ? is a valid character for naming functions and commands? I just created a function like that and it works ...it gets worse... see bz #8048 ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution -- http://www.andregarzia.com All We Do Is Code. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: [feature] did you guys knew that ? is a valid character for function/command name?
Not quite. We specify pass-by-ref by using '@' in the handler specification; you can't use it in the calling script as Ben did in his example in the email. Ben wants to be able to use the '@' (presumably as an option, with no actual effect) in the calling script, to help remind him that the variable will/may be changed within the handler. -- Alex. On 07/09/2010 14:56, Andre Garzia wrote: Err, Ben, this is actually in place since forever... we can pass by references values with @ On Tue, Sep 7, 2010 at 5:51 AM, Ben Rubinsteinbenr...@cogapp.com wrote: This is very bad news for my long-held campaign to introduce '@' as an optional (but one day might be checked) prefix to a parameter, to indicate in the calling line that this is passed by reference. ie if functionWithSideEffects(tInput, @tOutput) then ... should allow the reader to know immediately that 'functionWithSideEffects' takes the second parameter by reference. On 05/09/2010 22:01, Mark Wieder wrote: Andre- Sunday, September 5, 2010, 11:37:46 AM, you wrote: Folks, Did you guys knew that ? is a valid character for naming functions and commands? I just created a function like that and it works ...it gets worse... see bz #8048 ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: [feature] did you guys knew that ? is a valid character for function/command name?
Ben- Tuesday, September 7, 2010, 1:51:35 AM, you wrote: This is very bad news for my long-held campaign to introduce '@' as an optional (but one day might be checked) prefix to a parameter, to indicate in the calling line that this is passed by reference. I went to go vote for this bug report/enhancement request, but I can't exactly find it. Are you referring to 741, 3753, 6820, or 6949? BZ#3753 seems the closest although 741 has more accumulated votes (8/1). And 6949 has 5 votes although it's somewhat a side effect of not having a generic ability to specify @ in scripts. And 6820 has more votes than all the others combined, although it deals only with the special case of passing a reference to an array element. -- -Mark Wieder mwie...@ahsoftware.net ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: [feature] did you guys knew that ? is a valid character for function/command name?
Hi Alex, Alex Tweedly wrote: Not quite. We specify pass-by-ref by using '@' in the handler specification; you can't use it in the calling script as Ben did in his example in the email. Ben wants to be able to use the '@' (presumably as an option, with no actual effect) in the calling script, to help remind him that the variable will/may be changed within the handler. -- Alex. I have never used this method of passing-by-reference i any of my stack, so actually i dont know how useful it really is. Did you read this message of Wilhelm Sanke about image processing? http://lists.runrev.com/pipermail/use-revolution/2010-March/136246.html http://runtime-revolution.278305.n4.nabble.com/Language-comparisons-Lua-simpler-and-faster-than-RevTalk-td1586669.html http://www.mail-archive.com/use-revolution@lists.runrev.com/msg131812.html Could be possible to speed up Wilhelm's handlers that process binary image data using this method of passing-by-reference? Thanks in advance! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/feature-did-you-guys-knew-that-is-a-valid-character-for-function-command-name-tp2527567p2530061.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: [feature] did you guys knew that ? is a valid character for function/command name?
If one is interested in speed, it can be quite useful. Also you could write scripts with no functions! Just commands. Return the data in the same variable without copying to another (which happens in functions). It's a different coding style for sure. On 7 September 2010 09:56, Alejandro Tejada capellan2...@gmail.com wrote: I have never used this method of passing-by-reference i any of my stack, so actually i dont know how useful it really is. Stephen Barncard San Francisco Ca. USA more about sqb http://www.google.com/profiles/sbarncar ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: [feature] did you guys knew that ? is a valid character for function/command name?
On 07/09/2010 09:51, Ben Rubinstein wrote: This is very bad news for my long-held campaign to introduce '@' as an optional (but one day might be checked) prefix to a parameter, to indicate in the calling line that this is passed by reference. He was subsequently forced to retract partially, see below. On 07/09/2010 14:56, Andre Garzia wrote: Err, Ben, this is actually in place since forever... we can pass by references values with @ and on 07/09/2010 16:34, Alex Tweedly wrote: Ben wants to be able to use the '@' (presumably as an option, with no actual effect) in the calling script, to help remind him that the variable will/may be changed within the handler. Andre - yeah, what Alex said. Both caller and callee need to be fully aware when a parameter is by reference - it's a contract, and needs informed consent on both sides. Currently we have only presumed consent on the part of the caller. On 07/09/2010 17:07, Mark Wieder wrote: I went to go vote for this bug report/enhancement request, but I can't exactly find it. At which point Ben has to apologise for his hyperbole, and admit that long-held campaign means long-held view, but never done anything about it since posting to the now defunct Xtalks mailing list in May 2004. There was a lively (for Xtalks!) discussion, but nothing came of it (except the interesting observation from Doug Simons, who maintains SenseTalk, that he has the reverse; it's the caller that indicates a variable is passed by reference, he allows but ignores @ in the function declaration, only to maintain compatibility with Transcript). At that time I had an idealistic view that extensions to the language were better proposed and discussed in Xtalks first, before specifically proposing that Rev adopt them. I've now, better late than never, opened a report at RQCC: http://quality.runrev.com/qacenter/show_bug.cgi?id=8945 Ben ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: [feature] did you guys knew that ? is a valid character for function/command name?
Ben- Tuesday, September 7, 2010, 2:38:24 PM, you wrote: I've now, better late than never, opened a report at RQCC: http://quality.runrev.com/qacenter/show_bug.cgi?id=8945 Thanks. I added my votes. -- -Mark Wieder mwie...@ahsoftware.net ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: [feature] did you guys knew that ? is a valid character for function/command name?
Hi Stephen, Stephen Barncard-4 wrote: If one is interested in speed, it can be quite useful. Also you could write scripts with no functions! Just commands. Return the data in the same variable without copying to another (which happens in functions). It's a different coding style for sure. Many thanks for replying to my request. I had found only this thread about passing by reference: http://www.mail-archive.com/use-revolution@lists.runrev.com/msg15260.html Did you know if there is a benchmark that compares this particular method of passing by reference with conventional programming techniques used in this platform? The advantages of one method or another should look clear in a benchmark. Thanks in advance! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/feature-did-you-guys-knew-that-is-a-valid-character-for-function-command-name-tp2527567p2530778.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
[feature] did you guys knew that ? is a valid character for function/command name?
Folks, Did you guys knew that ? is a valid character for naming functions and commands? I just created a function like that and it works function mode? pMode return pMode is sLocalVarA[mode] end mode? and I can use it like this: if mode?(fundamenteal) then bla bla bla end if -- http://www.andregarzia.com All We Do Is Code. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: [feature] did you guys knew that ? is a valid character for function/command name?
Andre- Sunday, September 5, 2010, 11:37:46 AM, you wrote: Folks, Did you guys knew that ? is a valid character for naming functions and commands? I just created a function like that and it works ...it gets worse... see bz #8048 -- -Mark Wieder mwie...@ahsoftware.net ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: [feature] did you guys knew that ? is a valid character for function/command name?
On Sun, Sep 5, 2010 at 6:01 PM, Mark Wieder mwie...@ahsoftware.net wrote: Andre- Sunday, September 5, 2010, 11:37:46 AM, you wrote: Folks, Did you guys knew that ? is a valid character for naming functions and commands? I just created a function like that and it works ...it gets worse... see bz #8048 :-O We can now have our own obfuscated code contest! If I name a variable @ then can I create a command like command ? @@ bla bla bla end ? where I call it ? and pass @ by-reference... :-O PS: PowerDebug is really cool! -- -Mark Wieder mwie...@ahsoftware.net ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution -- http://www.andregarzia.com All We Do Is Code. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: [feature] did you guys knew that ? is a valid character for function/command name?
On 9/5/10 1:37 PM, Andre Garzia wrote: Folks, Did you guys knew that ? is a valid character for naming functions and commands? I just created a function like that and it works function mode? pMode return pMode is sLocalVarA[mode] end mode? and I can use it like this: if mode?(fundamenteal) then bla bla bla end if It was valid in HC too. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution