|
View:
New views
20 Messages
—
Rating Filter:
Alert me
|
| < Prev | 1 - 2 | Next > |
|
|
Defining locals or constantsIs there an easy way to do this type of thing:
constant WorldRadius = WorldConstant/pi local LocalVar = WorldRadius * 2 > That is initialise a local variable or constant to the result of a calculation. I can use a "preOpenStack" message to trigger a script.... but this is not always appropriate and clumsy - is there a simpler way? _______________________________________________ use-revolution mailing list use-revolution@... Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution |
|
|
Re: Defining locals or constantsWouldn't a function do the trick?
Ian On 15 May 2008, at 10:47, David Bovill wrote: > Is there an easy way to do this type of thing: > > constant WorldRadius = WorldConstant/pi > > local LocalVar = WorldRadius * 2 _______________________________________________ use-revolution mailing list use-revolution@... Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution |
|
|
Re: Defining locals or constantsNot as far as I can see:
local SomeLocal = testFunction() function testFunction return 6 end testFunction Will not compile here? _______________________________________________ use-revolution mailing list use-revolution@... Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution |
|
|
Re: Defining locals or constantsHi David,
What you want is not possible. You have to use a function and can't use this function to define a local variable in the way you want. function someFunction return 6 end someFunction Best, Mark -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Get your store on-line within minutes with Salery Web Store software. Download at http://www.salery.biz Op 15-mei-2008, om 12:21 heeft David Bovill het volgende geschreven: > Not as far as I can see: > > local SomeLocal = testFunction() > > function testFunction > return 6 > end testFunction > > Will not compile here? _______________________________________________ use-revolution mailing list use-revolution@... Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution |
|
|
Re: Defining locals or constantsOn 15/5/08 10:47, David Bovill wrote:
> Is there an easy way to do this type of thing: > > constant WorldRadius = WorldConstant/pi > > local LocalVar = WorldRadius * 2 > > > That is initialise a local variable or constant to the result of a > calculation. I can use a "preOpenStack" message to trigger a script.... but > this is not always appropriate and clumsy - is there a simpler way? http://quality.runrev.com/qacenter/show_bug.cgi?id=1241 vote vote vote... - Ben _______________________________________________ use-revolution mailing list use-revolution@... Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution |
|
|
Re: Defining locals or constantsAt 3:35 PM +0100 5/15/08, Ben Rubinstein wrote:
>>I can use a "preOpenStack" message to trigger a script.... but >>this is not always appropriate and clumsy - is there a simpler way? Is there really any practical difference between these two: local LocalVar = sqrt(10) on openstack do thingsthatneedthatvariable end and: local LocalVar on preOpenStack LocalVar = sqrt(10) end on openstack do thingsthatneedthatvariable end If you could define and set variables like you can in many other languages, those lines would have to run on preOpenStack anyway, otherwise you can run into issues, where a handler is called before the variable is set. _______________________________________________ use-revolution mailing list use-revolution@... Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution |
|
|
|
|
|
Re: Defining locals or constants> constant WorldRadius = WorldConstant/pi > > local LocalVar = WorldRadius * 2 >> > > > That is initialise a local variable or constant to the result of a > calculation. I can use a "preOpenStack" message to trigger a script.... but > this is not always appropriate and clumsy - is there a simpler way? Well, you could do this kind of workaround I learned from Teresa Snyder: constant WorldConstant = 25000 constant WorldRadius ="[[WorldConstant/pi]]" on answerTenTimesWorldRadius put 10 * merge(WorldRadius) into tResult answer tResult end answerTenTimesWorldRadius Don't know if this makes it any easier or harder, but just providing an option... Ken Ray Sons of Thunder Software, Inc. Email: kray@... Web Site: http://www.sonsothunder.com/ _______________________________________________ use-revolution mailing list use-revolution@... Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution |
|
|
Re: Defining locals or constantsBy the way, Ken, is a new 2.9 stackrunner on the way?
sqb -- stephen barncard s a n f r a n c i s c o - - - - - - - - - - - - _______________________________________________ use-revolution mailing list use-revolution@... Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution |
|
|
Re: Defining locals or constantsBen-
Since bz #1241 has been sitting around in "New" status for over four years now, I changed its severity from enhancement to normal. Maybe that will keep it from falling off the bug radar. C'mon team... it's not that hard to implement evaluation of rvalues at compile time... -- Mark Wieder mwieder@... _______________________________________________ use-revolution mailing list use-revolution@... Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution |
|
|
Re: Defining locals or constantsHi Mark,
Sure, you are right, this bughancement should be fixed as quickly as possible. Problem is, there are a lot of such bugs, such as the incorrect window bounding rects, non-functional SSL, a slightly messed up standalone builder, a broken revPrintField command, the almost-impossibility to create custom cursors, incomplete driver names and other problems with drivers, problems with serial ports, a failing getResources function, problems with copying backgrounds, and remaining problems with the debugger. All these bugs are of the category "come on team, how difficult can this be?" and date back to 2003 and earlier. Which bug should be fixed first? More important: how to motivate RunRev Ltd to actually do something about this? Even the 1.5 year long beta testing programming didn't solve this problem. What to do? Best regards, Mark Schonewille -- Economy-x-Talk Consulting and Software Engineering http://economy-x-talk.com http://www.salery.biz Color Converter does what it says. Download it at http://economy-x-talk.com/cc.html On 15 mei 2008, at 21:03, Mark Wieder wrote: > Ben- > > Since bz #1241 has been sitting around in "New" status for over four > years > now, I changed its severity from enhancement to normal. Maybe that > will keep > it from falling off the bug radar. > > C'mon team... it's not that hard to implement evaluation of rvalues at > compile time... > > -- > Mark Wieder > mwieder@... > _______________________________________________ use-revolution mailing list use-revolution@... Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution |
|
|
|
|
|
Re: Defining locals or constantsMark-
> Which bug should be fixed first? All of mine, of course <g> Seriously, though, I'm not so much concerned with getting this one fixed since I do have workarounds for it. They're just awkward and I'd like not to have to resort to them. But I *am* appalled that this bug (and others) still has a status of "new" two years after it was confirmed (and even that was some two years after I filed it). -- Mark Wieder mwieder@... _______________________________________________ use-revolution mailing list use-revolution@... Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution |
|
|
Re: Defining locals or constantsSo, what do we do about it? Can we do anything?
-- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Get your store on-line within minutes with Salery Web Store software. Download at http://www.salery.biz Op 15-mei-2008, om 23:33 heeft Mark Wieder het volgende geschreven: > Mark- > >> Which bug should be fixed first? > > All of mine, of course <g> > > Seriously, though, I'm not so much concerned with getting this one > fixed > since I do have workarounds for it. They're just awkward and I'd > like not to > have to resort to them. But I *am* appalled that this bug (and > others) still > has a status of "new" two years after it was confirmed (and even > that was > some two years after I filed it). > > -- > Mark Wieder > mwieder@... > _______________________________________________ use-revolution mailing list use-revolution@... Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution |
|
|
Re: Defining locals or constants2008/5/15 Mark Schonewille <m.schonewille@...>:
> So, what do we do about it? Can we do anything? Make it easier for the community to document, vote, comment and organise these issues. As an example - I would vote on this, but I find that either due to the upgrade to 2.9 or the fact that I have not filed a bug report in a few months - I've lost my login - it would take me 5 minutes to dig out - but that's too much. Its just too many steps relying on limited feedback and resources from RunRev - the list is really the only thing that works because of the choice of Bugzilla and the lack of easy integrate feedback integrated into the environment - a Revolution IDE should have "crowd sourcing" built in. _______________________________________________ use-revolution mailing list use-revolution@... Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution |
|
|
Re: Defining locals or constantsOn 16/5/08 9:00 AM, "David Bovill" <david@...> wrote:
> resources from RunRev - the list is really the only thing that works because > of the choice of Bugzilla and the lack of easy integrate feedback integrated > into the environment - a Revolution IDE should have "crowd sourcing" built > in. How about adtoptin the 'tag cloud' metaphor that is popular with social bookmarking sites. The 'hotter' the bug the more prominence it has in the feedback interface. Hard to ignore something when it's jumping out at you in 36 point text! Terry... _______________________________________________ use-revolution mailing list use-revolution@... Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution |
|
|
Re: Defining locals or constantsOn May 15, 2008, at 7:00 PM, David Bovill wrote:
> Make it easier for the community to document, vote, comment and > organise > these issues. As an example - I would vote on this, but I find that > either > due to the upgrade to 2.9 or the fact that I have not filed a bug > report in > a few months - I've lost my login - it would take me 5 minutes to > dig out - > but that's too much. Hey David - I'm not trying to be confrontational here but 5 minutes to find your login info (which can be saved by your browser for future trips to QCC) seems like a small sacrifice to make in order to log information on a bug that is important to you. > Its just too many steps relying on limited feedback and > resources from RunRev - the list is really the only thing that works > because > of the choice of Bugzilla and the lack of easy integrate feedback > integrated > into the environment - a Revolution IDE should have "crowd sourcing" > built > in. I think that regardless of what improvements could be made to the Quality Control Center it is important to use the system that we actually have. It is by no means inadequate for the task at hand and can be used to get information to the development team on how to improve the product. I know from experience that the folks at Rev look at the reports and fix them when possible. And their responsiveness to reports in QCC over the last few months has greatly improved as well. I hope that just because there are some lingering bugs that may have the wrong status or haven't been publicly addressed people don't abandon the system entirely. One more thing to add relating to this and the RunRevLive conference (excellent by the way) I just returned from earlier this week. I have never walked away from one of the Revolution conferences as confident in the company as I did this one. There were a number of people from the company there that we (the attendees) could stop in the hall and chat with about all things Rev. I think 2.9 created a lot of positive momentum for Revolution as a development tool and the company seems to be in a position to build on that momentum. If you have stuff you want to see fixed or improved then I think now is the best time ever to let them know about it. Regards, -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com Developer Resources: http://revolution.bluemangolearning.com _______________________________________________ use-revolution mailing list use-revolution@... Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution |
|
|
Re: Defining locals or constants2008/5/16 Trevor DeVore <lists@...>:
> On May 15, 2008, at 7:00 PM, David Bovill wrote: > > Make it easier for the community to document, vote, comment and organise >> these issues. As an example - I would vote on this, but I find that >> either >> due to the upgrade to 2.9 or the fact that I have not filed a bug report >> in >> a few months - I've lost my login - it would take me 5 minutes to dig out >> - >> but that's too much. >> > > Hey David - > > I'm not trying to be confrontational here but 5 minutes to find your login > info (which can be saved by your browser for future trips to QCC) seems like > a small sacrifice to make in order to log information on a bug that is > important to you. Yes I know - just being honest. I was in a meeting - and had a few threads to reply to - I click to vote on the bug - bingo login not remembered by browser - so I drop it hoping to come back later - still not done. If Wikipedia or any crowd sourcing interface adopted that interface the database would not have got off the ground. I think it took me over 9 months to realise Bugzilla even existed - its not in the IDE, prominently on the web site, or links in the footer of the emails from the list - it is effectively invisible to only those that are active developers. It is an old-school marketing attitude to bury "bug reporting" under the guise of "quality control". Its just too many steps relying on limited feedback and > resources from RunRev - the list is really the only thing that works > because > of the choice of Bugzilla and the lack of easy integrate feedback > integrated > into the environment - a Revolution IDE should have "crowd sourcing" built > in. > I think that regardless of what improvements could be made to the Quality > Control Center it is important to use the system that we actually have. Yes please everyone - use Bugzilla now as its what we've got! Now where is my login.... _______________________________________________ use-revolution mailing list use-revolution@... Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution |
|
|
Re: Defining locals or constantsOn 16 May 2008, at 11:45, David Bovill wrote: > I think it took me over 9 months to realise Bugzilla even existed - > its not in the IDE, prominently on the web site, or links in the > footer of the emails from the list - it is effectively invisible to > only those that are active developers. Surely that should be 'invisible to every *but* active developers'? ;-) I was about to suggest that Rev take a leaf out of Apple's approach in Aperture where you have 'Provide Aperture Feedback' item right there in the application menu, until I looked in Rev's Help menu... Help>Support takes you directly to http://www.runrev.com/support/ and then the QCC is one of the main links. It's not quite as straightforward as 'provide feedback' or 'report a bug', but it IS there. Ian _______________________________________________ use-revolution mailing list use-revolution@... Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution |
|
|