Probably because there is only one default type at all. And that's .i, as you wrote.nco2k wrote:btw, why isnt there a default (.i like) type for floats? .f on 32bit and .d on 64bit.
And what has this got to do with the docs?
Regards, Little John
Moderator: Documentation Editors
Probably because there is only one default type at all. And that's .i, as you wrote.nco2k wrote:btw, why isnt there a default (.i like) type for floats? .f on 32bit and .d on 64bit.
Code: Select all
Var.z
Code: Select all
CompilerIf #PB_Compiler_Processor = #PB_Processor_x64
Var.d
CompilerElse
Var.f
CompilerEndIf
Now I see what you mean. It was a misunderstanding.nco2k wrote:wouldnt it be easier to write:instead of:Code: Select all
Var.z
Code: Select all
CompilerIf #PB_Compiler_Processor = #PB_Processor_x64 Var.d CompilerElse Var.f CompilerEndIf
For advanced programmers: it's also possible to put a procedure address or a label address inside Data when its type is set to long (.l). This can be used to build easy virtual function tables for example.
A function cannot return "the Log", but only a logarithm for a particular base.Docs of PB 4.40 Beta 6 wrote:Syntax
Result.f = Log(Number.f)
Description
Returns the Log of the Number.
Shouldn't it be the drag target, that is responsible for removing the original datahelp wrote:#PB_Drag_Move: The data should be moved (The drag source is responsible for removing the original data)
This is correct. How should the drag target be able to remove data from another program ?Marlin wrote:EventDropAction()Shouldn't it be the drag target, that is responsible for removing the original datahelp wrote:#PB_Drag_Move: The data should be moved (The drag source is responsible for removing the original data)
Otherwise, how would you signal the drag source to remove the original data or not
Code: Select all
EnableGadgetDrop(txtBaseDir, #PB_Drop_Files, #PB_Drag_Move)
Code: Select all
DeleteFile()
I'm using another PB application that contains file paths in a ListIconGadget.I just thought of something that can probable make my point clear: