Search found 235 matches

by Dr. Dri
Thu Oct 18, 2007 9:34 pm
Forum: Feature Requests and Wishlists
Topic: Close all except shortcut on tabs
Replies: 3
Views: 1142

+1
something like firefox "close others tabs"

Dri
by Dr. Dri
Fri Oct 05, 2007 9:48 am
Forum: General Discussion
Topic: Why are constants global?
Replies: 15
Views: 5453

I think Fred talked about a module/endmodule keyword (for a future version) wich looked like a kind of namespace

Dri
by Dr. Dri
Thu Oct 04, 2007 9:40 pm
Forum: Feature Requests and Wishlists
Topic: Prototype with LinkedList
Replies: 9
Views: 3421

DoubleDutch wrote:huh, whats ugly about the linkedlist and array syntax?
i can't have an array of lists, or a list of arrays etc...

Dri
by Dr. Dri
Thu Oct 04, 2007 4:27 pm
Forum: Feature Requests and Wishlists
Topic: Prototype with LinkedList
Replies: 9
Views: 3421

Fred wrote:The syntax is ugly :)
the linkedlist syntax itself is ugly :twisted:
the same goes for arrays :twisted: :twisted:

Dri
by Dr. Dri
Wed Oct 03, 2007 6:09 pm
Forum: Announcement
Topic: MIDI files management
Replies: 4
Views: 2849

It's been a while since the last time i wrote some midi code but i've fixed some bugs and improved some features. Now i would like to handle asynchronous midi files but i can't find any clear documentation and i don't even have asynchronous files to even make some tests. So i have made a small ...
by Dr. Dri
Sun Sep 30, 2007 4:32 pm
Forum: Feature Requests and Wishlists
Topic: remove the structure viewer
Replies: 4
Views: 1719

if it's replaced by the Resident viewer i'm suggesting you won't need it anymore...

Maybe it's not clear but suggest a viewer which shows :
- constants
- structures
- interfaces
- prototypes
- macros

i also ask for features informing :
- which resident file contains the elements listed above
- in ...
by Dr. Dri
Sun Sep 30, 2007 11:45 am
Forum: Feature Requests and Wishlists
Topic: remove the structure viewer
Replies: 4
Views: 1719

remove the structure viewer

The embedded structure viewer tool is way too old. A resident viewer would be far better. Something which could allow to choose the the resident we want to "view" with options for unicode and subsystems. Something also able to show macros and prototypes (anything you can find in a res file)

Dri
by Dr. Dri
Sun Jun 03, 2007 5:46 pm
Forum: Tricks 'n' Tips
Topic: LoadPCX Procedure
Replies: 4
Views: 2935

hagibaba wrote:Hi Dr Dri,

you're right. It would be better. I'll update these entrys to do that. Thanks for the tip.
I'm the one who should thank for the tip

Dri ;)
by Dr. Dri
Fri Jun 01, 2007 10:14 pm
Forum: Tricks 'n' Tips
Topic: LoadPCX Procedure
Replies: 4
Views: 2935

if you want a more readable code you can do things like that :
*hDIB.BITMAPINFOHEADER = AllocateMemory(bhsize + (ncolors*4) + (pitch*height))

;[...]

*hDIB\biSize = SizeOf(BITMAPINFOHEADER)
*hDIB\biWidth = width
*hDIB\biHeight = height
*hDIB\biPlanes = 1
*hDIB\biBitCount = bitcount
*hDIB ...
by Dr. Dri
Fri Jun 01, 2007 10:02 pm
Forum: Feature Requests and Wishlists
Topic: Division by 0.0 allowed
Replies: 17
Views: 3886

if you want a comparison :
i remember of having got the "inf" value in script languages (java, ecmascript, ...) and from compiled languages (C)

Dri
by Dr. Dri
Fri Jun 01, 2007 5:22 pm
Forum: Feature Requests and Wishlists
Topic: Division by 0.0 allowed
Replies: 17
Views: 3886

imho since a float division by 0.0 gives consistent results it shouldn't be forbidden

Dri
by Dr. Dri
Sun May 27, 2007 7:38 pm
Forum: Feature Requests and Wishlists
Topic: Division by 0.0 allowed
Replies: 17
Views: 3886

Division by 0.0 allowed

with this code i get an error at run time

Code: Select all

l.l = 0
m.l = 1 / l
but not with this one

Code: Select all

f.f = 0.0
g.f = 1.0 / f
but still i can't do that because the compiler says that division by zero is forbidden even for floats

Code: Select all

g.f = 1.0 / 0.0
is it possible to remove this check ?

Dri
by Dr. Dri
Sun May 27, 2007 1:43 pm
Forum: General Discussion
Topic: Just estimate...
Replies: 8
Views: 2694

it's weird indeed
a.q
cube.q
a=1
Repeat
a+1
cube=a*a*a
Until cube <> Pow(a,3)
Debug a
Debug cube
Debug Pow(a, 3)

[EDIT]
i got it !
pow is interpreted as a float in the test and as a double in the debug
a.q = 257

cube_q.q = a * a * a
cube_f.f = a * a * a
cube_d.d = a * a * a

Debug cube_q ...
by Dr. Dri
Sat May 26, 2007 6:03 pm
Forum: Coding Questions
Topic: Passing strings to procedures "By Ref"(theoretical
Replies: 27
Views: 6710

modifying static strings is a matter that have already been discussed
and PokeS is unchecked (just like others memory functions)

It's just that i realized *pointer.s could be used this way!

Dri :)
by Dr. Dri
Fri May 25, 2007 7:40 pm
Forum: Coding Questions
Topic: Passing strings to procedures "By Ref"(theoretical
Replies: 27
Views: 6710

Thanks to this topic I've learned something about string pointers.
Here is a code to sum up how to modify static/dynamic strings :
Procedure ModString(*sa.s)
PokeS(@*sa, "123456789")
EndProcedure

sp1.s
sp1 = "purebasic"

sp2.s
sp2 = "purebasic"

ModString(@sp2)

Debug sp2

ModString(@"purebasic ...