It is currently Fri May 24, 2013 4:59 am

All times are UTC + 1 hour




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 224 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 15  Next
Author Message
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Mon Nov 16, 2009 3:03 pm 
Offline
Enthusiast
Enthusiast

Joined: Sun Sep 17, 2006 1:24 pm
Posts: 389
Location: Germany
I believe, I got what you meant now, but I still find this
help wrote:
(The drag source is responsible for removing the original data)
confusing.

Who would ever asume, that the code in the target app would or should
bypass the code in the source application and do something in the other app :?:

If source and target are the same application, there is nothing, that would prevent
the target to be able to do the cleanup (a tiny bit earlier) than the source (after DragXXX) could do.
The programmer can decide this as he pleases.


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Mon Nov 16, 2009 4:20 pm 
Offline
PureBasic Team
PureBasic Team
User avatar

Joined: Fri Apr 25, 2003 5:21 pm
Posts: 5188
Location: Germany
Marlin wrote:
I believe, I got what you meant now, but I still find this
help wrote:
(The drag source is responsible for removing the original data)
confusing.

Who would ever asume, that the code in the target app would or should
bypass the code in the source application and do something in the other app :?:

This is how a "move" works:
- source initiates the drag & drop
- when successful, target copies the data from source
- when successful, source deletes the data

I don't see what is so confusing about this. If you ignore the case of files, this is the only way this could work, as the target program cannot delete data in the source program.

Marlin wrote:
If source and target are the same application, there is nothing, that would prevent
the target to be able to do the cleanup (a tiny bit earlier) than the source (after DragXXX) could do.
The programmer can decide this as he pleases.


But this is generally not the case. If you drag text for example, you can never assume that the user only drops it within your own program. If you want that, you have to use DragPrivate() which is meant for this. All other formats work between programs by default.

_________________
Perl – The only language that looks the same before and after RSA encryption.
-- Keith Bostic


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Tue Nov 17, 2009 3:11 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 31, 2005 11:09 pm
Posts: 2240
Location: Italy
Marco2007 wrote:
but much more important: I´m soooo happy you have never been a teacher of mine at school :mrgreen:


I never understood people saying those things.

"he's so good I don't want to have him to teach something to me, give me someone only a little better than me, so I wouldn't risk to learn too much and maybe I will able to make some errors without getting caught"

MAH!

_________________
[ Home ] [ My PC ] [ New to PB ? ]


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Tue Nov 17, 2009 3:19 pm 
Offline
Addict
Addict
User avatar

Joined: Sun Mar 19, 2006 1:57 pm
Posts: 4835
Location: Germany
@luis: +1

mediocrity is king these days - poor mankind.

_________________
oh... and have a nice day.


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Tue Nov 17, 2009 3:51 pm 
Offline
Enthusiast
Enthusiast

Joined: Sun Sep 17, 2006 1:24 pm
Posts: 389
Location: Germany
freak wrote:
This is how a "move" works:
- source initiates the drag & drop
- when successful, target copies the data from source
- when successful, source deletes the data
This is a nice clear understandable explanation.

I think it would not be bad to have something like that in the helpfile too.

freak wrote:
I don't see what is so confusing about this. If you ignore the case of files, this is the only way this could work, as the target program cannot delete data in the source program.
Files are a rather common thing to be dragged.
Those are not usually part of an applications private data.
Yet, I consider them "original data".
So I was a little shocked to read about a drag source (not my app),
that would possibly take on, to remove(/delete) files (without my explicit consent).

Yes, just as you said: the target program cannot delete data in the source program.

I considered the thought, that it could or should be otherwise, allmost unthinkable,
therefore I did not see, why this should be mentioned in the helpfile,
unless it was refering to something rather unusuall (rather than unavoidable).
Marlin wrote:
Who would ever asume, that the code in the target app would or should
bypass the code in the source application and do something in the other app :?:


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Tue Nov 17, 2009 8:48 pm 
Offline
Enthusiast
Enthusiast

Joined: Sat May 21, 2005 1:08 am
Posts: 447
Location: USA
Could the missing .pb files linked as examples in the help files be added please?


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Tue Nov 17, 2009 9:59 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 31, 2005 11:09 pm
Posts: 2240
Location: Italy
in 4.40 B7

in the PureBasic - Map (overview) the link to the sample program Map.pb doesn't work, at least on my system...

the link is expanded to :

Code:
res://D:\WINDOWS\system32\shdoclc.dll/dnserror.htm#mk:@MSITStore:D:\Programmi\PureBasic\BETA\PureBasic.chm::/Examples/Map.pb.html


while for example the (working) linked list sample program is:

Code:
mk:@MSITStore:D:\Programmi\PureBasic\BETA\PureBasic.chm::/Examples/LinkedList.pb.html




ALSO: maybe it's because it's still beta, but Fred in the announcement talked about a "full english doc" so I'm reporting anyway: the history is not updated.

_________________
[ Home ] [ My PC ] [ New to PB ? ]


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Tue Nov 17, 2009 10:08 pm 
Offline
Enthusiast
Enthusiast

Joined: Sat May 21, 2005 1:08 am
Posts: 447
Location: USA
That's what I just stated luis :lol:


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Tue Nov 17, 2009 10:12 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 31, 2005 11:09 pm
Posts: 2240
Location: Italy
But my post is longer and with some tags with strange text inside.
Could be useful ? Maybe.

_________________
[ Home ] [ My PC ] [ New to PB ? ]


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Wed Nov 18, 2009 1:26 am 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 07, 2007 3:25 pm
Posts: 1574
Location: Berlin, Germany
luis wrote:
Marco2007 wrote:
but much more important: I´m soooo happy you have never been a teacher of mine at school :mrgreen:


I never understood people saying those things.

"he's so good I don't want to have him to teach something to me, give me someone only a little better than me, so I wouldn't risk to learn too much and maybe I will able to make some errors without getting caught"

MAH!

Well, I have taught private lessons for more than 35 years, mainly about mathematics (only school math up to A-level) -- I'm not a mathematician, there's just some math in my blood for unknown reasons. So I never examined anyone, but helped pupils to pass examinations at school.
Some points always have been important to me: a) People should know the reason why they are learning this and that, b) when learning, people should have good feelings (e.g. it's possible to have a little fun in each lesson), c) When interesting stuff is presented in a relaxed atmosphere, almost all pupils do want to learn. Humans are curious by nature, teachers can utilize this fact. :-)

So if I were a teacher at school, yes I think my examinations would be rather demanding. But beforehand, I'd teach the pupils more than they had to know in order to pass the examinations. :-)

Regards, Little John

_________________
Math problems?
Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x].


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Sat Nov 21, 2009 9:20 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Mon Jan 12, 2004 11:40 pm
Posts: 671
Location: Okazaki, JAPAN
Please add to man

test.a, file.a 0..255

_________________
My general site & PureBasic Forum in Japan
My facebook page, The friend is being recruited.


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Mon Nov 23, 2009 12:11 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Dec 21, 2008 5:02 pm
Posts: 609
Location: Aarhus, Denmark
Isn't this missing in the manual for ArraySize()?
http://www.purebasic.fr/english/viewtopic.php?f=13&t=39575#p303466


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Sat Nov 28, 2009 10:28 pm 
Offline
PureBasic Team
PureBasic Team
User avatar

Joined: Fri Apr 25, 2003 6:14 pm
Posts: 909
Location: Germany (Saxony, Deutscheinsiedel)
Arctic Fox wrote:
Isn't this missing in the manual for ArraySize()?
http://www.purebasic.fr/english/viewtopic.php?f=13&t=39575#p303466


Done :)

_________________
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Sat Nov 28, 2009 10:38 pm 
Offline
PureBasic Team
PureBasic Team
User avatar

Joined: Fri Apr 25, 2003 6:14 pm
Posts: 909
Location: Germany (Saxony, Deutscheinsiedel)
luis wrote:
in 4.40 B7

in the PureBasic - Map (overview) the link to the sample program Map.pb doesn't work, at least on my system...


The related example file Map.pb is still missing in the docs.
So I set it on the 'ToDo' list in first post...

_________________
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)


Top
 Profile  
 
 Post subject: Re: PureBasic Docs - Errors & needed improvements to the man
PostPosted: Sat Nov 28, 2009 11:00 pm 
Offline
PureBasic Team
PureBasic Team
User avatar

Joined: Fri Apr 25, 2003 6:14 pm
Posts: 909
Location: Germany (Saxony, Deutscheinsiedel)
Demivec wrote:
Update entry 'Data' to correct examples and text describing the storing of memory addresses so that they use the Integer (.i) type instead of Long (.l). This will keep things accurate for both 32-bit and 64-bit environments.


Updated the 'Data' description to reflect the new variable types and prefered '.i' type.

_________________
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 224 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 15  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye