Delphi 2010有没有分布类(Partial Class)这个特性?

ysai 2011-10-11 05:41:30
像C#中的Partial Class

有的话,语法是怎么样的?
...全文
189 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
亮剑_ 2011-10-12
  • 打赏
  • 举报
回复
[Quote=引用 7 楼 ysai 的回复:]

Delphi Prism中就支持,可惜是.NET的
[/Quote]
Prism本来就是个Shell
ysai 2011-10-12
  • 打赏
  • 举报
回复
Delphi Prism中就支持,可惜是.NET的
xmfan2000 2011-10-12
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 lhylhy 的回复:]

忽然想到,以后会不会有Partial Function?
[/Quote]

C#中貌似就有了。
lhy 2011-10-12
  • 打赏
  • 举报
回复
忽然想到,以后会不会有Partial Function?
  • 打赏
  • 举报
回复
Class Helper可以实现类似的特性,而且可以在不修改类源码的情况下给类打补丁。
iqyely 2011-10-12
  • 打赏
  • 举报
回复
来关注下
xonln 2011-10-11
  • 打赏
  • 举报
回复
如果Andser在这个公司的话,可能会支持这一特性的
不过,你可以用类的方式把大的函数分解
柯本 2011-10-11
  • 打赏
  • 举报
回复
不同语言有不同特式
lhy 2011-10-11
  • 打赏
  • 举报
回复
这种特性比较怪。
ysai 2011-10-11
  • 打赏
  • 举报
回复
悲剧了 不支持
http://www.prestwood.com/ASPSuite/KB/Document_View.asp?QID=101791
Create modern-looking & feature-rich Windows applications faster with well over 400 components in one money and time saving bundle for Delphi 7, 2007, 2009, 2010, XE, XE2, XE3, XE4, XE5, XE6, XE7, XE8, 10 Seattle, 10.1 Berlin, 10.1 Berlin Starter Edition & C++Builder 2007, 2009, 2010, XE, XE2, XE3, XE4, XE5, XE6, XE7, XE8, 10 Seattle, 10.1 Berlin Features Grid RichEditor TreeView Spell Check HTML Edit Planner Outlook / Inspector Bar Web connectivity Syntax highlighting memo System Graphic Menu Smooth Miscellaneous All components TMS Component pack v8.3.4.0 : update Sep 23, 2016: Update : TAdvDateTimePicker v1.2.5.0 - New : MinTime, MaxTime properties added Update : TAdvGridFilterPanel v1.0.4.0 - New : OnAppliedFilter event added - New : OnRemovedFilter, OnRestoredFilter events added - Improved : Loading filter from grid Update : T(DB)Planner v3.4.1.1 - New : Planner.Items.SelectAll method added - Improved : Handling of auto header sizing Update : TAdvCardList v2.2.2.0 - New : Swipe capability added Update : TAdvTreeView v1.1.0.6 - Improved: Handling keyboard ALT, SHIFT and CTRL keys without navigating to selecting item - Fixed: Issue drag & drop interaction in combination with expand / collapse Update : TAdvStringGrid v8.1.3.0 - Improved : DistinctValues function now returns distinct column values irrespective of hidden rows - Improved : Shift-Enter key handling for moving to the previous cell - Improved : AppendToCSV() can export to CSV also when no previous CSV exists - Fixed : Issue with FilterDropDownCheck = true and filter strings with spaces - Fixed : CellProperty property name for backwards compatibility - Fixed : Issue with SearchFooter & nodes - Fixed : Issue with zero width columns and floating footer display - Fixed : Issue with Undo handling for checkboxes - Fixed : Issue with combination of cell icon and cell balloon
DIRegEx is a library of Delphi (Embarcadero / CodeGear / Borland) components and procedures that implement regular expression pattern matching using the same syntax and semantics as Perl 5.10, with just a few differences. This includes support for UTF-8 encoded strings and Unicode general category properties. DIRegEx offers two regular expression algorithms with their corresponding wrapper classes for easy usage: TDIPerlRegEx implements a matching algorithm with the same syntax and semantics as Perl. Consider this the standard algorithm which you are used to from Perl and JavaScript. It is very fast and supports the complete pattern syntax. You will very likely be using it most of the time. TDIDfaRegEx implements the DFA matching algorithm. Considerer this as a special purpose algorithm. If finds all possible matches and in particular, it finds the longest. It never needs to backtrack and supports partial matching much better, even for very long subject strings in several pieces. The DIRegEx Search Stream Demo ApplicationBoth classes descend from a common ancestor TDIRegEx which implements the complete functionality for working with regular expressions, regardless of which algorithm is currently in effect: Matching and extraction of matches / substrings from the source text. Searching for regular expressions within streams and memory buffers. To search within streams or files (of virtually unlimited size), use one of the specially optimized TDIRegExSearchStream class descendents. Replacements on full and partial matches / substrings. Listing of full and partial matches / substrings. Formatting of matches.

16,743

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 语言基础/算法/系统设计
社区管理员
  • 语言基础/算法/系统设计社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧