Some stuff for 4.0 (to push the release date even more...)

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Thomas
Enthusiast
Enthusiast
Posts: 112
Joined: Sat Apr 26, 2003 8:45 pm

Some stuff for 4.0 (to push the release date even more...)

Post by Thomas »

- New command to not change the 'To' value inside For..Next loop:

Code: Select all

b=10
ForN a=1 To b
Debug a
b=0
Next
- Floats as index:

Code: Select all

For a.f=0 to 359 Step 0.01
y=Sin(a)*100+240
x=Cos(a)*100+320
Plot(x,y)
Next
- CatchMovie() command to put .wma (or other multimedia files) into a pack file and retrieve them instead having to use LoadMovie()

- Register Variables may be a way to increase speed of the code even more (even though it's already very good for a compiler)
 
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

CatchMovie would be great! :)
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post by dracflamloc »

If I get what you're saying for the first request. I would request that it NOT be done that way.
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

i don't understand what thomas wants, to be honest
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Some stuff for 4.0 (to push the release date even more..

Post by PB »

I know what Thomas wants, but it seems a bit silly... if he doesn't want the
value of "b" to change, then don't change it -- or just use a specific variable
for that loop instead. No need to go adding a new command for such a thing.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Post by va!n »

DoubleDutch wrote:CatchMovie would be great! :)
i have to disagree... it make no sence to include a movie to an exe and catch this complete a 2nd time to the memory... i dont want hold the complete movie file into memory... i would accept, if you looking for a command like PlayStreamMovie(?label,offset) or something like this... also playing a movie (included in a file as long as the exe isnt packed)... but i would more like to have such big datas outside of the exe... just my opinion
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
KarLKoX
Enthusiast
Enthusiast
Posts: 681
Joined: Mon Oct 06, 2003 7:13 pm
Location: France
Contact:

Post by KarLKoX »

va!n wrote:
DoubleDutch wrote:CatchMovie would be great! :)
i have to disagree... it make no sence to include a movie to an exe and catch this complete a 2nd time to the memory... i dont want hold the complete movie file into memory... i would accept, if you looking for a command like PlayStreamMovie(?label,offset) or something like this... also playing a movie (included in a file as long as the exe isnt packed)... but i would more like to have such big datas outside of the exe... just my opinion
I second :!: :)
"Qui baise trop bouffe un poil." P. Desproges

http://karlkox.blogspot.com/
User avatar
nco2k
Addict
Addict
Posts: 1344
Joined: Mon Sep 15, 2003 5:55 am

Post by nco2k »

@va!n
a movie can also be just few kilobytes. :wink:

c ya,
nco2k
If OSVersion() = #PB_OS_Windows_ME : End : EndIf
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

> i have to disagree... it make no sence to include a movie to an exe and
> catch this complete a 2nd time to the memory... i dont want hold the
> complete movie file into memory

It's more a convenience thing... so you don't need to extract it to disk first,
etc. As nco2k said, a movie isn't always 50 MB. :) And nobody will force you
to use a CatchMovie command.

And as for your comment about the size -- what about CatchImage and also
CatchSound, when used with BMP images and WAVs? They can be huge, too.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Post Reply