Search found 149 matches

by Dräc
Thu Nov 08, 2007 11:20 pm
Forum: Announcement
Topic: PureBasic 4.10 final released (all OS!)
Replies: 69
Views: 33143

freak wrote:As was announced already previously DX9 support is next on the list, but we
also have many surprises in store for the next version (some already finished),
so wait and see... :D
I hate suprises :mrgreen:
by Dräc
Thu Nov 01, 2007 5:41 pm
Forum: Feature Requests and Wishlists
Topic: Some function call could be removed by their value
Replies: 8
Views: 2205

@PB: right

@freak : of course it is one solution for RGB(). But my naive suggestion is for a systematic approach of the compiler applicable to most functions of the PB standard library…
by Dräc
Thu Nov 01, 2007 2:02 pm
Forum: Feature Requests and Wishlists
Topic: Some function call could be removed by their value
Replies: 8
Views: 2205

correction: RGB(255,0,0) <-> #FF
by Dräc
Thu Nov 01, 2007 1:59 pm
Forum: Feature Requests and Wishlists
Topic: Some function call could be removed by their value
Replies: 8
Views: 2205

Sure? :)

Code: Select all

; a = RGB(255,0,0)
	PUSH	 dword 0
	PUSH	 dword 0
	MOV	 eax,255
	CALL	 PB_RGB
	MOV	 dword [v_a],eax
by Dräc
Thu Nov 01, 2007 1:43 pm
Forum: Feature Requests and Wishlists
Topic: Some function call could be removed by their value
Replies: 8
Views: 2205

Some function call could be removed by their value

I try to express a think shared by several people.
Some function call could be removed by their value.

For example:
RGB(255,0,0) is equivalent in #FF0000

Even if RGB() is a function, given x,y,z (means x,y and z are constants) RGB(x,y,z) is a given value too.

So, a possible optimisation could be ...
by Dräc
Tue Oct 23, 2007 10:14 pm
Forum: The PureBasic Editor
Topic: [bug] custom keyword syntax highlight
Replies: 0
Views: 2023

[bug] custom keyword syntax highlight

A little bug using custom keyword syntax highlight:
Given 'a' and 'ab' two custom keywords, now add 'a_a' as a new custom keyword. 'ab' keyword isn’t highlighted anymore...
by Dräc
Thu Oct 18, 2007 11:12 pm
Forum: Announcement
Topic: Tutorial: PureBasic and the OOP
Replies: 34
Views: 17664

Small update: the *this\Instance feacture is full operational

Use it to call methods within the methods!

See http://drac.site.chez-alice.fr/Tutorial ... ur_Alerte1
by Dräc
Thu Oct 18, 2007 8:44 pm
Forum: Coding Questions
Topic: Macro + Include function + recursiveness
Replies: 3
Views: 1911

Ok! I see...
Is it revelant to force the compiler to seek the end of a compiler command into macros that follow a starting compiler statement?
In this case, that require a complex macro expansion separating the code above the end statement from the code below the end statement...
by Dräc
Tue Oct 16, 2007 10:43 pm
Forum: Coding Questions
Topic: Macro + Include function + recursiveness
Replies: 3
Views: 1911

I met an other problem with macro + recursiveness but I can't isolate it into a simple example. :?
I hope is linked to the previous one...
by Dräc
Tue Oct 16, 2007 10:34 pm
Forum: Coding Questions
Topic: Macro + Include function + recursiveness
Replies: 3
Views: 1911

Macro + Include function + recursiveness

I have some difficulties to handle correctly the set of Include functions in a recursive way:

Given 3 files, there is no bug if the macro called "Ended" is directly substituted by "CompilerEndIf"

file1.pb
XIncludeFile "file3.pb"

XIncludeFile "file2.pb" ; <-- No problem if commented

Start ...
by Dräc
Sun Oct 14, 2007 11:14 am
Forum: Off Topic
Topic: Wishing France good luck tomorrow in the Rugby...
Replies: 26
Views: 5146

Congratulation to England, Wilkinson and Robinson are performed roles with success, but a small match for French without a Try… :?
Now, your are the only north hemisphere representative: good luck!
by Dräc
Fri Oct 12, 2007 8:06 pm
Forum: Off Topic
Topic: Wishing France good luck tomorrow in the Rugby...
Replies: 26
Views: 5146

:P
See you tomorrow: a Chabal is unleash :D

Well, a good match ahead! :wink:
by Dräc
Mon Oct 08, 2007 9:42 pm
Forum: General Discussion
Topic: Dynamic Array to be embedded into structures
Replies: 3
Views: 2140

Here an improvement of the previous version:
Now, the dynamic array is standalone.
Such an array can be an individual variable or embedded into a structure.
As a consequence, it can be called by referent through a procedure.
;=====================================================
; Array
;
; Dynamic ...
by Dräc
Sun Oct 07, 2007 9:44 am
Forum: Feature Requests and Wishlists
Topic: Relative IncludePath
Replies: 2
Views: 2336

Relative IncludePath

My wish is that IncludePath (or a new command) would be interpreted relative to the owner file.
Without that, all Path need to be absolute and reassigned each time.

Here an example of my current problem:
File1:
IncludePath <Path1>
IncludeFile "File2.pbi"
IncludeFile "File3.pbi"

File2:
IncludePath ...
by Dräc
Wed Oct 03, 2007 10:25 pm
Forum: Announcement
Topic: Tutorial: PureBasic and the OOP
Replies: 34
Views: 17664

New update of the OOP set of instructions:

First, a simplification of the class declaration.
The implementation is the same as previous, but the Init_Mbers : EndInit_Mbers block became a private block of the OOP implementation. This private block is used by the new block New : EndNew to perform ...