One can already define a Structure type inside a procedure:
Procedure Test()
Structure Foo
l.l
b.b
EndStructure
Protected f.Foo
...
....
EndProcedure
Unfortunately Structure types are global to the program, so no other "Structure Foo" can be defined elsewhere in the program.
It would be ...
Search found 16 matches
- Sun Sep 23, 2007 9:40 pm
- Forum: Feature Requests and Wishlists
- Topic: Protected Structure types
- Replies: 16
- Views: 3984
- Thu Aug 23, 2007 7:34 pm
- Forum: Coding Questions
- Topic: Bug with pointer to String
- Replies: 8
- Views: 2285
- Tue Aug 14, 2007 10:37 am
- Forum: Coding Questions
- Topic: Bug with pointer to String
- Replies: 8
- Views: 2285
- Tue Aug 14, 2007 10:31 am
- Forum: Feature Requests and Wishlists
- Topic: StringField()
- Replies: 11
- Views: 3140
- Fri Aug 10, 2007 7:27 pm
- Forum: Feature Requests and Wishlists
- Topic: StringField()
- Replies: 11
- Views: 3140
- Fri Aug 10, 2007 7:21 pm
- Forum: Coding Questions
- Topic: Bug with pointer to String
- Replies: 8
- Views: 2285
- Wed Aug 08, 2007 6:46 pm
- Forum: Coding Questions
- Topic: Bug with pointer to String
- Replies: 8
- Views: 2285
Bug with pointer to String
Code: Select all
s.s = "abcd"
*p.String = @s
PrintN(*p\s)
Code: Select all
Define s.String
s\s = "abcd"
*p.String = @s
PrintN(*p\s)
- Wed Aug 08, 2007 6:33 pm
- Forum: Feature Requests and Wishlists
- Topic: StringField()
- Replies: 11
- Views: 3140
StringField()
StringField() is not optimized for speed. PureBasic needs a fast pointer-to-pointer based function to extract fields from string, e.g. StringToken(@*PointerToString, Delimeter.s).
Another thing: Implementing my own version of such a function, I noticed that PureBasic lacks a Pointer structure ...
Another thing: Implementing my own version of such a function, I noticed that PureBasic lacks a Pointer structure ...
- Mon Jul 23, 2007 10:38 pm
- Forum: Feature Requests and Wishlists
- Topic: Strings
- Replies: 6
- Views: 3656
- Mon Jul 23, 2007 9:56 pm
- Forum: Feature Requests and Wishlists
- Topic: Strings
- Replies: 6
- Views: 3656
- Sun Jul 22, 2007 7:15 pm
- Forum: Feature Requests and Wishlists
- Topic: Strings
- Replies: 6
- Views: 3656
Strings
Strings are past as parameters to procedures by value, which is good but time consuming.
It would be better (faster) if a pointer to the original value was used internally as long as the procedure would not try to change this value, while this pointer would point to the new value if the procedure ...
It would be better (faster) if a pointer to the original value was used internally as long as the procedure would not try to change this value, while this pointer would point to the new value if the procedure ...
- Sat Jul 14, 2007 3:53 pm
- Forum: Coding Questions
- Topic: Problem with Dim
- Replies: 9
- Views: 1808
- Thu Jul 12, 2007 11:37 pm
- Forum: Coding Questions
- Topic: Problem with Dim
- Replies: 9
- Views: 1808
- Wed Jul 11, 2007 5:40 pm
- Forum: Coding Questions
- Topic: Problem with Dim
- Replies: 9
- Views: 1808
- Tue Jul 10, 2007 8:28 pm
- Forum: Coding Questions
- Topic: Problem with Dim
- Replies: 9
- Views: 1808