Search found 11 matches

by gogo
Thu Jan 24, 2008 9:43 am
Forum: Off Topic
Topic: Haskell
Replies: 18
Views: 3143

Hello PB Lovers,

Here is my little contribution to this thread. I agree with many of your comments about functionnal programming. I also prefer to write code in PureBasic or other imperative languages. It's easier for me to think about an algorithm in PureBasic, C, java, ADA, .... But sometimes it ...
by gogo
Wed Jun 27, 2007 8:36 am
Forum: Feature Requests and Wishlists
Topic: plusieurs argument retourné des procedures
Replies: 12
Views: 3711

Bonjour Kaeru Gaman,

I studied German many, many years ago. And you can't imagine how much I regret to not have studied it more and better....

I agree with you on two points :

* we don't need prefixed parameters with special meaning(fred, please never change the compiler this way). I can't ...
by gogo
Tue Jun 26, 2007 4:15 pm
Forum: Feature Requests and Wishlists
Topic: plusieurs argument retourné des procedures
Replies: 12
Views: 3711

Sorry for the non-french speaking people 8) Go to learn a new language ... french :D

Dobro, tu dois surement vouloir une syntaxe de ce type :

Sub Divise_par_2(ByRef a As Integer,ByRef b As Integer)
a /= 2
b /= 2
End Sub

Dim a As Integer
Dim b As Integer

a = 20
b = 50

Divise_par_2(a,b ...
by gogo
Fri Jun 22, 2007 1:38 pm
Forum: Feature Requests and Wishlists
Topic: plusieurs argument retourné des procedures
Replies: 12
Views: 3711

Salut dobro,

C'est pas çà que tu cherche ?

Code: Select all

Procedure p(*a.LONG,*b.LONG)

  *a\l = 10
  *b\l = 10

EndProcedure

OpenConsole()

  a = 20
  b = 30
  p(@a,@b)

  PrintN("a="+Str(a))
  PrintN("b="+Str(b))
  
  Input()
CloseConsole()
by gogo
Thu Jun 21, 2007 1:56 pm
Forum: Coding Questions
Topic: PrintN Bug or normal behaviour
Replies: 8
Views: 1637

The program that crashed Srod's PC is 5 kb :shock:
Il love PureBasic :)

I understand why I heard to never trust too small programs. They look like very dangerous viruses. The same program in RealBasic is far more heavy ... It looks serious (even if it does nothing) :roll: But it works :wink ...
by gogo
Thu Jun 21, 2007 1:25 pm
Forum: Coding Questions
Topic: PrintN Bug or normal behaviour
Replies: 8
Views: 1637

Srod, I'm really sorry if youre story is true :twisted: I never thought that I can write a 'virus' with the PrintN() function.

As PB said in his post there is a limit.
I made some other tests with version 4.10B2 on Win2k sp4.

With Unicode support in compiler option,
this code works :
OpenConsole ...
by gogo
Wed Jun 20, 2007 3:00 pm
Forum: Coding Questions
Topic: PrintN Bug or normal behaviour
Replies: 8
Views: 1637

PrintN Bug or normal behaviour

Hello,

I'm using PB 4.02 on Win2k. The following code prints a lot of characters on the console.


OpenConsole()
msg.s

For i=1 To 1900
msg + "AZERTYUIOPQSDFGHJKLMWXCVBN" + #CRLF$
Next i

PrintN(msg)
PrintN(Str(Len(msg)) + " characters should be printed")
PrintN("Finished")
Input()
CloseConsole ...
by gogo
Sat Feb 03, 2007 9:46 pm
Forum: General Discussion
Topic: Where is my purebasic?
Replies: 13
Views: 2671

To Ricardo : As we say in France : "la jalousie est un vilain défaut" :wink:
( Transalation by Google is very strange )


And even if the French work less they are just more efficient 8)

Cheers from Meudon (France) :D
by gogo
Sat Feb 03, 2007 12:07 am
Forum: Feature Requests and Wishlists
Topic: C like escape sequenses for strings.
Replies: 29
Views: 10516

:? oops :( I should read the code before posting.

But what I want to say is that I cant understand arguments of the anti-backslash lobby. They don't want it because of the windows paths. But they can use the slash. I've seen some jokes with "http:////". We never said that the slash character is the ...
by gogo
Fri Feb 02, 2007 11:40 pm
Forum: Feature Requests and Wishlists
Topic: C like escape sequenses for strings.
Replies: 29
Views: 10516

:twisted: Just a question : How do you escape the double-quote (") character ..... This is why it should be done on the compiler side.

A lot of you are scared by strings like this one :
"D:\\PureBasic\\Examples\\Sources\\2DDrawing.pb"
I can admit that it's very boring to use \\ to escape the ...
by gogo
Thu Feb 01, 2007 9:27 pm
Forum: Feature Requests and Wishlists
Topic: C like escape sequenses for strings.
Replies: 29
Views: 10516

I like verbatim strings as found in C# ....

Code: Select all

string s=@"bla bla bla c:\folder\file.ext
and I can continue on next line 
and another line ";
Ok, the @ is used for getting the address. In PB we just need to find another character.